From ed17c9501e61f1fe58168606feaffa3abd63dba8 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Wed, 25 Oct 2023 12:40:53 -0400 Subject: [PATCH] code simplification of stages executing --- chroot-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chroot-script b/chroot-script index 95f3ef6..2c29465 100755 --- a/chroot-script +++ b/chroot-script @@ -804,7 +804,8 @@ trap signal_handler HUP INT QUIT TERM custom_scripts upgrade_system remove_apt_cache services \ remove_chrootmirror; do if stage $i ; then - $i && stage $i 'done' || exit 1 + $i || exit 1 + stage $i 'done' fi done # always execute the finalize stage: -- 2.1.4