universal/bin/sbt: enclose arrays in quotes

Fixes https://github.com/sbt/sbt/issues/5076. Arrays should be enclosed in
quotes, or otherwise elements with spaces will be broken, e.g. `-Dfoobar="foo
bar"` will become `-Dfoobar=foo` and `bar`.
This commit is contained in:
Tuomas Lappeteläinen 2019-09-13 12:19:39 +03:00
parent 3181b291ba
commit 5165b9fd51
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[@]}"