Selaa lähdekoodia

Added app_info_print 1

Added app_info_print 1 to check availablebuild. This shoudl resolve the
issue with the latest buildid not being grabbed from the server. Thanks
for xPaw from SteamDB.info for pointing this out
Daniel Gibbs 11 vuotta sitten
vanhempi
commit
078a5ccbd8
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      functions/fn_update_check

+ 2 - 2
functions/fn_update_check

@@ -2,7 +2,7 @@
 # LGSM fn_update_check function
 # LGSM fn_update_check function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-# Version: 060515
+# Version: 080515
 
 
 # Description: Checks if a server update is available.
 # Description: Checks if a server update is available.
 
 
@@ -112,7 +112,7 @@ currentbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s '
 
 
 # Gets availablebuild info
 # Gets availablebuild info
 cd "${rootdir}/steamcmd"
 cd "${rootdir}/steamcmd"
-availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_print "${appid}" +app_info_print "${appid}" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\  -f3)
+availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +app_info_print "${appid}" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\  -f3)
 if [ -z "${availablebuild}" ]; then
 if [ -z "${availablebuild}" ]; then
 	fn_printfail "Checking for update: SteamCMD"
 	fn_printfail "Checking for update: SteamCMD"
 	fn_scriptlog "Failure! Checking for update: SteamCMD"
 	fn_scriptlog "Failure! Checking for update: SteamCMD"