Explorar o código

fix(steamcmd): fix update on start not starting the server (#3169)

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Christian %!s(int64=5) %!d(string=hai) anos
pai
achega
4eb2c52fd4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lgsm/functions/core_steamcmd.sh

+ 1 - 1
lgsm/functions/core_steamcmd.sh

@@ -238,8 +238,8 @@ fn_update_steamcmd_compare(){
 				exitbypass=1
 				command_start.sh
 				fn_firstcommand_reset
+				unset exitbypass
 			fi
-			unset exitbypass
 			date +%s > "${lockdir}/lastupdate.lock"
 			alert="update"
 		elif [ "${commandname}" == "CHECK-UPDATE" ]; then