mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +00:00
Fix failure when using --nodownload
This commit is contained in:
parent
a5d3fd72c2
commit
6f244a02fa
@ -1597,17 +1597,17 @@ doUpdate() {
|
||||
echo "Update download interrupted"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
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"
|
||||
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
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user