mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 22:48:29 +00:00
Fix potential update failure when no depots installed
This commit is contained in:
parent
adae5f580c
commit
848dcf6c2f
@ -739,11 +739,13 @@ function getSavedArksDirectory(){
|
|||||||
# Check if the update manifest matches the current manifest
|
# Check if the update manifest matches the current manifest
|
||||||
#
|
#
|
||||||
function checkUpdateManifests(){
|
function checkUpdateManifests(){
|
||||||
appinfo="$(runSteamCMD +app_info_print "$appid")"
|
local appinfo="$(runSteamCMD +app_info_print "$appid")"
|
||||||
if [ -z "$appbranch" ]; then
|
if [ -z "$appbranch" ]; then
|
||||||
appbranch="$(getCurrentBranch)"
|
appbranch="$(getCurrentBranch)"
|
||||||
fi
|
fi
|
||||||
|
local hasmanifest=
|
||||||
while read depot manifest <&3; do
|
while read depot manifest <&3; do
|
||||||
|
hasmanifest=1
|
||||||
depot="${depot//\"/}"
|
depot="${depot//\"/}"
|
||||||
manifest="${manifest//\"/}"
|
manifest="${manifest//\"/}"
|
||||||
newmanifest="$(echo "${appinfo}" | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.${depot}.manifests" "${appbranch:-public}"; break; fi; done)"
|
newmanifest="$(echo "${appinfo}" | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.${depot}.manifests" "${appbranch:-public}"; break; fi; done)"
|
||||||
@ -754,7 +756,11 @@ function checkUpdateManifests(){
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
done 3< <(sed -n '/^[{]$/,/^[}]$/{/^\t"MountedDepots"$/,/^\t[}]$/{/^\t\t/p}}' "${arkserverroot}/steamapps/appmanifest_${appid}.acf")
|
done 3< <(sed -n '/^[{]$/,/^[}]$/{/^\t"MountedDepots"$/,/^\t[}]$/{/^\t\t/p}}' "${arkserverroot}/steamapps/appmanifest_${appid}.acf")
|
||||||
return 0
|
if [ -z "$hasmanifest" ]; then
|
||||||
|
return 1
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user