fix typos and array declaration
This commit is contained in:
parent
b04c834c64
commit
5c70f94883
1 changed files with 6 additions and 6 deletions
|
@ -10,9 +10,9 @@
|
|||
#. .env
|
||||
|
||||
# auto-restart
|
||||
AUTO_RESTART=${AUTO_RESTART:-1} # 1 to enable
|
||||
RESTART_DELAY=${RESTART_DELAY:-3} # seconds
|
||||
DONT_RESTART_IF=${DONT_RESTART_IF:0} # exit code
|
||||
AUTO_RESTART=${AUTO_RESTART:-1} # 1 to enable
|
||||
RESTART_DELAY=${RESTART_DELAY:-3} # seconds
|
||||
DONT_RESTART_IF=${DONT_RESTART_IF-130} # exit code
|
||||
|
||||
# java options
|
||||
JAVA_BIN=${JAVA_BIN:-java} # full path to the java binary
|
||||
|
@ -27,12 +27,12 @@ GC_CONC_THREADS=${GC_CONC_THREADS:-"$(( half=GC_PAR_THREADS / 2, half == 0 ? 1 :
|
|||
# marker thread count, defaults to half of parallel
|
||||
|
||||
# mc options
|
||||
MC_FLAGS=${MC_FLAGS:nogui} # Minecraft flags
|
||||
MC_FLAGS=${MC_FLAGS-nogui} # Minecraft flags
|
||||
SERVER_JAR=${SERVER_JAR:-server.jar} # server JAR file
|
||||
|
||||
# ---
|
||||
|
||||
gcs=(
|
||||
declare -A gcs=(
|
||||
[zgc]="-XX:+UseZGC"
|
||||
[shenandoahgc]="-XX:+UseShenandoahGC"
|
||||
)
|
||||
|
@ -65,7 +65,7 @@ java_args+=(-jar "${SERVER_JAR}" $MC_FLAGS)
|
|||
echo "Using settings:"
|
||||
echo "Java binary: ${JAVA_BIN?}"
|
||||
# shellcheck disable=SC2145
|
||||
echo "Options: ${java_args[@]@Q} ${}"
|
||||
echo "Options: ${java_args[@]@Q}"
|
||||
echo "Auto restart: $( (( AUTO_RESTART )) && echo 'enabled' || echo 'disabled' )"
|
||||
} 2>&1
|
||||
|
||||
|
|
Loading…
Reference in a new issue