Skip to content

Commit

Permalink
adjust stages executing for new error handling method
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent 53ed3b4 commit fcaea6e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -2151,12 +2151,9 @@ for i in format_efi_partition prepare_vm mkfs tunefs \
preparechroot execute_pre_scripts chrootscript execute_post_scripts \
remove_configs umount_chroot grub_install umount_target fscktool ; do
if stage "${i}" ; then
"$i"
if [ $? -eq 0 ]; then
stage "${i}" 'done' && rm -f "${STAGES}/${i}"
else
bailout 2 "$i"
fi
"$i" || bailout 2 "$i"
stage "${i}" 'done'
rm -f "${STAGES}/${i}"
fi
done

Expand Down

0 comments on commit fcaea6e

Please sign in to comment.