|
@@ -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"
|