Skip to content

Commit 13cc35d

Browse files
committed
[Fix-6840] Config variable substitution inconsistent
1 parent e572a9b commit 13cc35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [ $# == 0 ]
4747
then
4848
args="-h"
4949
else
50-
args=$@
50+
args=("$@")
5151
fi
5252

5353
set +u
@@ -107,4 +107,4 @@ while IFS= read -r line || [[ -n "$line" ]]; do
107107
fi
108108
done < ${APP_DIR}/config/jvm_client_options
109109

110-
java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args}
110+
java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} "${args[@]}"

0 commit comments

Comments
 (0)