From 23f73547c2d1fadeafe75c2798c613f9ec51eef9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 20 Dec 2015 22:24:37 +0000 Subject: [PATCH] resolves bug with appinfo.vdi fix suggestion by @sergey-k1 should of been ${HOME} not ${rootdir} see issue #474 --- functions/fn_update_check | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/functions/fn_update_check b/functions/fn_update_check index ec04c7f09..551f4f4aa 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -113,13 +113,12 @@ sleep 1 # Gets currentbuild currentbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) -# 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 "${rootdir}/Steam/appcache/appinfo.vdf" ]; then - rm -f "${rootdir}/Steam/appcache/appinfo.vdf" +# Gets availablebuild info +cd "${rootdir}/steamcmd" +if [ -f "${HOME}/Steam/appcache/appinfo.vdf" ]; then + rm -f "${HOME}/Steam/appcache/appinfo.vdf" 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