Просмотр исходного кода

Added fix to get latest buildid from steamcmd

As per comment here
https://github.com/dgibbs64/linuxgsm/commit/078a5ccbd8659ddd0506287feac7d0e77aa600a4
Daniel Gibbs 11 лет назад
Родитель
Сommit
14b004630b
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      functions/fn_update_check

+ 7 - 0
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"