Skip to content

Commit a89e66d

Browse files
committed
Fixed command line options quotation in scripts
1 parent 9c894d3 commit a89e66d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/spark-sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ while (($#)); do
9292
esac
9393
done
9494

95-
eval "$FWDIR"/bin/spark-submit --class $CLASS ${SUBMISSION_ARGS[*]} spark-internal ${CLI_ARGS[*]}
95+
"$FWDIR"/bin/spark-submit --class $CLASS "${SUBMISSION_ARGS[@]}" spark-internal "${CLI_ARGS[@]}"
9696
exit_status=$?
9797

9898
if [[ exit_status -eq CLASS_NOT_FOUND_EXIT_STATUS ]]; then

sbin/start-thriftserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ while (($#)); do
7676
esac
7777
done
7878

79-
eval "$FWDIR"/bin/spark-submit --class $CLASS ${SUBMISSION_ARGS[*]} spark-internal ${THRIFT_SERVER_ARGS[*]}
79+
"$FWDIR"/bin/spark-submit --class $CLASS "${SUBMISSION_ARGS[@]}" spark-internal "${THRIFT_SERVER_ARGS[@]}"
8080
exit_status=$?
8181

8282
if [[ exit_status -eq CLASS_NOT_FOUND_EXIT_STATUS ]]; then

0 commit comments

Comments
 (0)