Преглед изворни кода

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

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Christian пре 5 година
родитељ
комит
50cd3d8f2a
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 				exitbypass=1
 				command_start.sh
 				command_start.sh
 				fn_firstcommand_reset
 				fn_firstcommand_reset
+				unset exitbypass
 			fi
 			fi
-			unset exitbypass
 			date +%s > "${lockdir}/lastupdate.lock"
 			date +%s > "${lockdir}/lastupdate.lock"
 			alert="update"
 			alert="update"
 		elif [ "${commandname}" == "CHECK-UPDATE" ]; then
 		elif [ "${commandname}" == "CHECK-UPDATE" ]; then