From d4ed4b70a3424a892da8bfe78e5b8a9c4c262668 Mon Sep 17 00:00:00 2001 From: Odaka Ui <31593320+odakaui@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:50:31 -0800 Subject: [PATCH] Add quotes around `shutdown 1` `gorcon/rcon-cli` treats space separated arguments as separate commands. Adding quotes around `rcon-cli "shutdown 1"`, forces rcon-cli to treat it as a single command. --- scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index 23028be..bbf91a4 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -20,7 +20,7 @@ fi term_handler() { if [ "${RCON_ENABLED}" = true ]; then rcon-cli save - rcon-cli shutdown 1 + rcon-cli "shutdown 1" else # Does not save kill -SIGTERM "$(pidof PalServer-Linux-Test)" fi