Merge pull request #280 from kingslef/fix/java-args-with-spaces

universal/bin/sbt: enclose arrays in quotes
This commit is contained in:
eugene yokota 2019-09-13 09:50:01 -04:00 committed by GitHub
commit b24ec386ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -330,8 +330,8 @@ copyRt() {
echo Copying runtime jar.
mkdir -p "$java9_ext"
execRunner "$java_cmd" \
${sbt_options[@]} \
${java_args[@]} \
"${sbt_options[@]}" \
"${java_args[@]}" \
-jar "$rtexport" \
"${java9_rt}"
fi
@ -382,8 +382,8 @@ run() {
# run sbt
execRunner "$java_cmd" \
$(get_gc_opts) \
${java_args[@]} \
${sbt_options[@]} \
"${java_args[@]}" \
"${sbt_options[@]}" \
-jar "$sbt_jar" \
"${sbt_commands[@]}" \
"${residual_args[@]}"