mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 22:48:29 +00:00
Add --validate option to update
This commit is contained in:
parent
39c649d296
commit
fddbec4f00
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user