From 14b004630ba7c6a1d316293fe903c09e77c41ceb Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 19 May 2015 22:08:52 +0100 Subject: [PATCH] Added fix to get latest buildid from steamcmd As per comment here https://github.com/dgibbs64/linuxgsm/commit/078a5ccbd8659ddd0506287feac7d0e77aa600a4 --- functions/fn_update_check | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions/fn_update_check b/functions/fn_update_check index 0334c94a8..d10d53ec5 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -117,6 +117,13 @@ currentbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' # Gets availablebuild info cd "${rootdir}/steamcmd" + +# Removes appinfo.vdf as a fix for not always getting up to date version info from SteamCMD + +if [ -f "${rootdor}/Steam/appcache/appinfo.vdf" ]; then + rm -f "${rootdor}/Steam/appcache/appinfo.vdf" + echo "yup" +fi 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 fn_printfail "Checking for update: SteamCMD"