mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 03:18:28 +00:00
clear cache before fetching the available version
This commit is contained in:
parent
b07c60cb7c
commit
42ce0a99ac
@ -126,7 +126,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
|
||||
}
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user