Skip to content

Commit

Permalink
[Hotfix][Core][Shell] Improve plugin install shell
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer committed Nov 19, 2022
1 parent 3bd1244 commit 0449650
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions bin/install-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,30 @@ fi
path=flink-sql

while read line; do
if [ ${line:0:1} != "-" ] && [ ${line:0:1} != "#" ]
then
echo "install connector : " $line
${SEATUNNEL_HOME}/mvnw dependency:get -DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version} -Ddest=connectors/${path}
fi
# v1 connectors flink-sql
if [ "$line" = "--flink-sql-connectors--" ]
then
then
path=flink-sql
fi
fi
# v1 connectors flink
if [ "$line" = "--flink-connectors--" ]
then
then
path=flink
fi
fi
# v1 connectors spark
if [ "$line" = "--spark-connectors--" ]
then
then
path=spark
fi
fi
# v2 connectors
if [ "$line" = "--connectors-v2--" ]
then
then
path=seatunnel
fi
fi
if [ ${line:0:1} != "-" ] && [ ${line:0:1} != "#" ]
then
echo "install connector : " $line
${SEATUNNEL_HOME}/mvnw dependency:get -DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version} -Ddest=connectors/${path}
fi

done < ${SEATUNNEL_HOME}/config/plugin_config

0 comments on commit 0449650

Please sign in to comment.