Procházet zdrojové kódy

feat: steamcmd install now goes via update_steamcmd.sh (#4165)

now goes via update_steamcmd.sh
Daniel Gibbs před 3 roky
rodič
revize
d099e7ef72

+ 2 - 1
lgsm/functions/install_server_files.sh

@@ -212,7 +212,8 @@ fn_sleep_time
 
 if [ "${appid}" ]; then
 	remotelocation="SteamCMD"
-	fn_dl_steamcmd
+	forceupdate=1
+	update_steamcmd.sh
 fi
 
 if [ "${shortname}" == "ts3" ]; then

+ 1 - 1
lgsm/functions/update_steamcmd.sh

@@ -18,7 +18,7 @@ fn_print_dots "${remotelocation}"
 
 if [ "${forceupdate}" == "1" ]; then
 	# forceupdate bypasses update checks.
-	if [ "${status}" != "0" ]; then
+	if [ "${status}" != "0" ]&&[ -v "${status}" ]; then
 		fn_print_restart_warning
 		exitbypass=1
 		command_stop.sh