Skip to content

Commit dbd6121

Browse files
Handle exit on failed steamcmd
1 parent ae556e8 commit dbd6121

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/functions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ install() {
4343
LogAction "Starting server install"
4444
LogInfo "Installing branch: ${BRANCH}"
4545
envsubst < /home/steam/server/install.scmd > /tmp/install.scmd
46-
/home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd
46+
if ! /home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd; then
47+
LogError "Failed to install server branch ${BRANCH}"
48+
exit 1
49+
fi
4750
}
4851

4952
cpu_check(){

0 commit comments

Comments
 (0)