From 889171ea5869f4f5c13bd9acb3b5d90e3366b716 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 4 Jan 2015 01:12:59 +0000 Subject: [PATCH] Fixed steamcmd.sh not found error --- functions/fn_versioncheck | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/fn_versioncheck b/functions/fn_versioncheck index 608f160f5..74152d540 100644 --- a/functions/fn_versioncheck +++ b/functions/fn_versioncheck @@ -12,9 +12,10 @@ fn_steamcmdcheck(){ # Checks for server update from SteamCMD fn_printdots "Checking for update: SteamCMD" fn_scriptlog "Checking for update: SteamCMD" -installedversion=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) -availableversion=$(steamcmd/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) sleep 1 +installedversion=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) +cd "${rootdir}/steamcmd" +availableversion=$(./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) if [ -z "${availableversion}" ]; then fn_printfail "Checking for update: SteamCMD" fn_scriptlog "Failure! Checking for update: SteamCMD" @@ -175,7 +176,7 @@ elif [ "${appmanifestfilewc}" -eq "0" ]; then fn_scriptlog "Forcing update to correct issue" sleep 1 fn_updateserver - fn_logupdaterequest + fn_versioncheck fi }