Skip to content

Commit

Permalink
add quotes to prevent word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvanloef committed Jan 25, 2024
1 parent 4d9a784 commit 9d03e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9d03e93

Please sign in to comment.