On failure return output of all tasks to be reran

Appears that the last task in the list was being
stripped off of the output.

Change-Id: Ifade924961855ac22452e80149916027af068b06
This commit is contained in:
Antony Messerli 2018-01-22 13:39:39 -06:00
parent bfa655cbee
commit c8107e781b

View File

@ -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\""