File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments