Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
image/games: Fix unary expression errors in server.sh scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
Timo Reichl committed Sep 16, 2022
1 parent e3c3e1d commit 57e04e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion image/games/base/hlds/usr/local/bin/server.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [ $(id -u) -ne ${STEAMCMD_UID} ]; then
if [[ $(id -u) -ne ${STEAMCMD_UID} ]]; then
exec gosu steamcmd ${0} $@
fi

Expand Down
4 changes: 2 additions & 2 deletions image/games/base/srcds/usr/local/bin/server.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [ $(id -u) -ne ${STEAMCMD_UID} ]; then
if [[ $(id -u) -ne ${STEAMCMD_UID} ]]; then
exec gosu steamcmd ${0} $@
fi

Expand Down Expand Up @@ -72,7 +72,7 @@ run() {
steamcmd_cfg_dir=${STEAMCMD_SERVER_HOME}/${STEAMCMD_SERVER_GAME}/cfg

# Copy server.cfg file to the server cfg folder if it doesn't exist yet
if [ ! -f ${steamcmd_cfg_dir}/server.cfg ]; then
if [[ ! -f ${steamcmd_cfg_dir}/server.cfg ]]; then
cp /etc/steamcmd/srcds/cfg/server.cfg ${steamcmd_cfg_dir}/server.cfg
fi

Expand Down

0 comments on commit 57e04e9

Please sign in to comment.