projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ed3b4
)
adjust stages executing for new error handling method
author
Patrick Schleizer
<adrelanos@whonix.org>
Wed, 25 Oct 2023 16:40:03 +0000
(12:40 -0400)
committer
Patrick Schleizer
<adrelanos@whonix.org>
Thu, 7 Dec 2023 18:51:55 +0000
(13:51 -0500)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
17a8b1c
..
d00dc0c
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-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