Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/226'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Oct 25, 2023
2 parents 85cbbe0 + 1e27d8e commit 2999d61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# error_handler {{{
if [ "$REPORT_TRAP_ERR" = "yes" ] || [ "$FAIL_TRAP_ERR" = "yes" ]; then
set -e
set -E
set -o pipefail
trap "error_handler" ERR
Expand Down
4 changes: 3 additions & 1 deletion grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ last bash command: $last_bash_command"
}

if [ "$REPORT_TRAP_ERR" = "yes" ] || [ "$FAIL_TRAP_ERR" = "yes" ]; then
set -e
set -E
set -o pipefail
trap "error_handler" ERR
Expand Down Expand Up @@ -2177,7 +2178,8 @@ 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
if "$i" ; then
"$i"
if [ $? -eq 0 ]; then
stage "${i}" 'done' && rm -f "${STAGES}/${i}"
else
bailout 2 "$i"
Expand Down

0 comments on commit 2999d61

Please sign in to comment.