Skip to content

Commit

Permalink
[Improve] fix empty line in config/plugin_config causes BUILD FAILURE (
Browse files Browse the repository at this point in the history
  • Loading branch information
chaos-cn authored Nov 27, 2023
1 parent deed9c6 commit d482a8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/install-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ fi
while read line; do
first_char=$(echo "$line" | cut -c 1)

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

done < ${SEATUNNEL_HOME}/config/plugin_config
done < ${SEATUNNEL_HOME}/config/plugin_config

0 comments on commit d482a8f

Please sign in to comment.