mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
add quotes to prevent word splitting
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user