chore(upgrade): Dont stop rollback by default.
The rollback can still be stopped with a --stop-on-rollback-error option
@@ -167,9 +167,14 @@ rollback() {
(eval "${step}::rollback \"$backupdir\" \"$workdir\" \"$cleanup\" \"$current_tag\"")
if [ $? -ne 0 ]; then
set -e
+ if [ $(hasflag --stop-on-rollback-error) ]; then
echo "====> Rollback Error ==> Exit"
echo "Backup directory *not* deleted: $backupdir"
exit 1
+ else
+ echo "====> Rollback Error !!"
+ echo "====> Continuing with rollback (specify --stop-on-rollback-error to stop here)"
+ fi
fi
set -e
done
