From 9d03e933e0466e07be62257ce7e47b10c62f8299 Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Thu, 25 Jan 2024 18:23:14 +0100 Subject: [PATCH] add quotes to prevent word splitting --- scripts/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 6f70094..23028be 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -18,11 +18,11 @@ if [ "${UPDATE_ON_BOOT}" = true ]; then fi term_handler() { - if [ ${RCON_ENABLED} = true ]; then + if [ "${RCON_ENABLED}" = true ]; then rcon-cli save rcon-cli shutdown 1 else # Does not save - kill -SIGTERM $(pidof PalServer-Linux-Test) + kill -SIGTERM "$(pidof PalServer-Linux-Test)" fi tail --pid=$killpid -f 2>/dev/null }