Просмотр исходного кода

How allows for multiple appids to pass though updater

for csco
Daniel Gibbs 9 лет назад
Родитель
Сommit
e7f25889c3
1 измененных файлов с 9 добавлено и 3 удалено
  1. 9 3
      lgsm/functions/update_steamcmd.sh

+ 9 - 3
lgsm/functions/update_steamcmd.sh

@@ -140,6 +140,7 @@ fn_update_request_log(){
 }
 }
 
 
 fn_update_steamcmd_check(){
 fn_update_steamcmd_check(){
+	appid="${1}"
 	fn_appmanifest_check
 	fn_appmanifest_check
 	# Checks for server update from SteamCMD
 	# Checks for server update from SteamCMD
 	fn_print_dots "Checking for update: SteamCMD"
 	fn_print_dots "Checking for update: SteamCMD"
@@ -185,7 +186,6 @@ fn_update_steamcmd_check(){
 		sleep 1
 		sleep 1
 		echo -e "	Current build: ${red}${currentbuild}${default}"
 		echo -e "	Current build: ${red}${currentbuild}${default}"
 		echo -e "	Available build: ${green}${availablebuild}${default}"
 		echo -e "	Available build: ${green}${availablebuild}${default}"
-		echo -e ""
 		echo -e "	https://steamdb.info/app/${appid}/"
 		echo -e "	https://steamdb.info/app/${appid}/"
 		sleep 1
 		sleep 1
 		echo ""
 		echo ""
@@ -236,7 +236,10 @@ if [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
 	if [ "${status}" != "0" ]; then
 	if [ "${status}" != "0" ]; then
 		exitbypass=1
 		exitbypass=1
 		command_stop.sh
 		command_stop.sh
-		fn_update_steamcmd_dl
+		if [ "${gamename}" == "Classic Offensive" ]; then
+			appid="${appid_co}"
+			fn_update_steamcmd_dl
+		fi
 		exitbypass=1
 		exitbypass=1
 		command_start.sh
 		command_start.sh
 	else
 	else
@@ -244,5 +247,8 @@ if [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
 	fi
 	fi
 else
 else
 	fn_update_request_log
 	fn_update_request_log
-	fn_update_steamcmd_check
+	fn_update_steamcmd_check "${appid}"
+	if [ "${gamename}" == "Classic Offensive" ]; then
+		fn_update_steamcmd_check "${appid_co}"
+	fi
 fi
 fi