diff --git a/tools/arkmanager b/tools/arkmanager index c5819c8..bdb6823 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -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