diff --git a/leap-upgrades/lib/functions.sh b/leap-upgrades/lib/functions.sh index 0ee2eef6..d38a2364 100644 --- a/leap-upgrades/lib/functions.sh +++ b/leap-upgrades/lib/functions.sh @@ -98,7 +98,7 @@ function run_lock { unset RUN_TASKS[$1] notice "$run_item has been marked as success at ${upgrade_marker}" else - FAILURES_LIST=$(seq $1 $((${#RUN_TASKS[@]} - 1))) + FAILURES_LIST=$(seq $1 $((${#RUN_TASKS[@]}))) failure "******************** failure ********************" failure "The upgrade script has encountered a failure." failure "Failed on task \"$run_item\""