mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 10:58:28 +00:00
Warn when update has failed when using --force
This commit is contained in:
parent
e2d6a44a98
commit
256d59e1b2
@ -1600,12 +1600,15 @@ doUpdate() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${force}" ]; then
|
||||
local curver="$(getCurrentVersion)"
|
||||
local newver="$(getStagingVersion)"
|
||||
if [[ -z "${newver}" || "$curver" == "$newver" ]]; then
|
||||
local curver="$(getCurrentVersion)"
|
||||
local newver="$(getStagingVersion)"
|
||||
local nextver="$(getAvailableVersion)"
|
||||
if [[ -z "${newver}" || "$curver" == "$newver" ]]; then
|
||||
if [ -z "$force" ]; then
|
||||
echo "Update download unsuccessful"
|
||||
return 1
|
||||
elif [ "${newver}" != "${nextver}" ]; then
|
||||
echo "Warning: staging directory update was unsuccessful"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user