Add --validate option to update

This commit is contained in:
Ben Peddell 2015-09-16 19:10:42 +10:00
parent 39c649d296
commit fddbec4f00

View File

@ -508,6 +508,7 @@ doUpdateWarn(){
doUpdate() { doUpdate() {
local appupdate= local appupdate=
local updatetype=normal local updatetype=normal
local validate=
for arg in "$@"; do for arg in "$@"; do
if [ "$arg" == "--force" ]; then if [ "$arg" == "--force" ]; then
@ -516,6 +517,9 @@ doUpdate() {
updatetype=safe updatetype=safe
elif [ "$arg" == "--warn" ]; then elif [ "$arg" == "--warn" ]; then
updatetype=warn updatetype=warn
elif [ "$arg" == "--validate" ]; then
validate=validate
appupdate=1
fi fi
done done
@ -548,7 +552,7 @@ doUpdate() {
doStop doStop
cd "$steamcmdroot" cd "$steamcmdroot"
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid +quit ./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid $validate +quit
# the current version should be the last version. We set our version # the current version should be the last version. We set our version
getCurrentVersion getCurrentVersion
echo "`timestamp`: update to $instver complete" >> "$logdir/update.log" echo "`timestamp`: update to $instver complete" >> "$logdir/update.log"