Checks if user wants to perform a backup prior to updating if a new version is available

This commit is contained in:
Marius Linge 2015-09-20 08:19:24 +02:00
parent a8b3e65bd9
commit cb7ab15f69

View File

@ -639,6 +639,9 @@ doUpdate() {
doStop
if [ -n "$appupdate" ]; then
if [ "$arkBackupPreUpdate" == "true" ]; then
doBackup
fi
cd "$steamcmdroot"
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid $validate +quit
# the current version should be the last version. We set our version