Skip to content

Commit 8f6f6de

Browse files
heredoc typo
1 parent fad1877 commit 8f6f6de

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/functions.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ install() {
4343
LogAction "Starting server install"
4444

4545
if [ -n "${BETA}" ]; then
46-
LogInfo "Installing Steam beta branch: ${BETA}"
46+
LogInfo "Installing version: ${BETA}"
47+
else
48+
LogInfo "Installing stable branch"
4749
fi
4850

49-
# Substitute BETA in install.scmd
50-
envsubst < /home/steam/server/install.scmd > /tmp/install.scmd.tmp <<EOF
51-
BETA=${BETA}
52-
EOF
51+
export BETA="${BETA}"
52+
envsubst < /home/steam/server/install.scmd > /tmp/install.scmd
5353

54-
/home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd.tmp
55-
if [ $? -ne 0 ]; then
54+
if ! /home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd; then
5655
LogError "SteamCMD failed to install/update the server"
5756
exit 1
5857
fi
58+
5959
LogSuccess "Server installation completed successfully"
6060
}
6161

0 commit comments

Comments
 (0)