clear cache before fetching the available version

This commit is contained in:
FezVrasta 2015-06-26 15:20:34 +02:00
parent 1bc75d61d1
commit 2134f022eb
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,8 @@ function getCurrentVersion(){
# Get the current available server version on steamdb
#
function getAvailableVersion(){
bnumber=`$steamcmdroot/$steamcmdexec +login anonymous +app_info_update 1 +app_info_print "$appid" +quit | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.branches.public" "buildid"; break; fi; done`
rm -f $steamcmd_appinfocache
bnumber=`$steamcmdroot/$steamcmdexec +login anonymous +app_info_update 1 +app_info_print "$appid" +quit | while read name val; do if [ "${name}" == "{" ]; then parseSteamAppVer; break; fi; done`
return $bnumber
}

View File

@ -5,6 +5,7 @@ arkstChannel="master" # change it
steamcmdroot="/home/steam/steamcmd" # path of your steamcmd instance
steamcmdexec="steamcmd.sh" # name of steamcmd executable
steamcmd_user="steam" # name of the system user who own steamcmd folder
steamcmd_appinfocache="/home/steam/Steam/appinfo.vdf" # cache of the appinfo command
# config environment
arkserverroot="/home/steam/ARK" # path of your ARK server files (default ~/ARK)