Skip to content

Commit

Permalink
code simplification of stages executing
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent 75ac460 commit dc5cf70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dc5cf70

Please sign in to comment.