Skip to content

Commit

Permalink
[Bug] Ensure install-plugin.sh compatibility with sh on Debian #5630 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxiaole authored Oct 19, 2023
1 parent aefc135 commit 62eb82d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/install-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ if [ ! -d ${SEATUNNEL_HOME}/connectors ];
fi

while read line; do
if [ ${line:0:1} != "-" ] && [ ${line:0:1} != "#" ]
first_char=$(echo "$line" | cut -c 1)

if [ "$first_char" != "-" ] && [ "$first_char" != "#" ]
then
echo "install connector : " $line
${SEATUNNEL_HOME}/mvnw dependency:get -DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version} -Ddest=${SEATUNNEL_HOME}/connectors
Expand Down

0 comments on commit 62eb82d

Please sign in to comment.