4
0
Эх сурвалжийг харах

Added fix to get latest buildid from steamcmd

Daniel Gibbs 11 жил өмнө
parent
commit
bb3efb947a

+ 2 - 3
functions/fn_update_check

@@ -120,9 +120,8 @@ 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"
+if [ -f "${rootdir}/Steam/appcache/appinfo.vdf" ]; then
+	rm -f "${rootdir}/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