Fix potential missed steam login failure

This commit is contained in:
Ben Peddell 2023-03-26 14:52:20 +10:00 committed by GitHub
parent 3e5a152ff4
commit 312603597a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2124,11 +2124,12 @@ doUpdate() {
doDownloadSteamCMD
cd "$steamcmdroot"
runSteamCMDAppUpdate "$arkStagingDir" ${appbeta:+-beta} $appbeta ${appbetapass:+-betapassword} $appbetapass $validate
result=$?
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
if [ $result -eq 0 ]; then
rm -rf "${arkStagingDir}/steamapps/downloading/${appid}"
elif [ $? -eq 5 ]; then
elif [ $result -eq 5 ]; then
echo "User ${steamlogin:-anonymous} login failed - please login to steamcmd manually"
fi