Skip to content

Commit

Permalink
Fix install return value check
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed authored Jul 12, 2024
1 parent 9b919c8 commit 4349b4b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -1705,13 +1705,18 @@ doInstall() {
# install the server
doDownloadSteamCMD
runSteamCMDAppUpdate "$arkserverroot" validate
if [ $? -eq 5 ]; then
echo "User ${steamlogin:-anonymous} login failed - please login to steamcmd manually"
elif [ $? -eq 8 ]; then
echo "Insufficient disk space to install the ARK server"
retval=$?
if [ $retval -eq 5 ]; then
echo "User ${steamlogin:-anonymous} login failed - please login to steamcmd manually" >&2
elif [ $retval -eq 8 ]; then
echo "Insufficient disk space to install the ARK server" >&2
fi
# the current version should be the last version. We set our version
instver="$(getCurrentVersion)"
return $retval
}
Expand Down

0 comments on commit 4349b4b

Please sign in to comment.