add quotes to prevent word splitting

This commit is contained in:
Thijs van Loef
2024-01-25 18:23:14 +01:00
parent 4d9a784942
commit 9d03e933e0

View File

@@ -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
}