Fixed usage of EXTRA_ARGS

#798
This commit is contained in:
Geoff Bourne 2021-03-11 15:08:26 -06:00
parent cd3ea7fd2e
commit 6fa827e9a1

View File

@ -61,15 +61,14 @@ for j in $JSON_FILES; do
fi fi
done done
EXTRA_ARGS=""
# Optional disable console # Optional disable console
if versionLessThan 1.14 && [[ ${CONSOLE,,} = false ]]; then if versionLessThan 1.14 && [[ ${CONSOLE,,} = false ]]; then
EXTRA_ARGS+="--noconsole" EXTRA_ARGS+=" --noconsole"
fi fi
# Optional disable GUI for headless servers # Optional disable GUI for headless servers
if [[ ${GUI} = false || ${GUI} = FALSE ]]; then if [[ ${GUI} = false || ${GUI} = FALSE ]]; then
EXTRA_ARGS="${EXTRA_ARGS} nogui" EXTRA_ARGS+=" nogui"
fi fi
# put these prior JVM_OPTS at the end to give any memory settings there higher precedence # put these prior JVM_OPTS at the end to give any memory settings there higher precedence