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"