From: Patrick Schleizer Date: Wed, 25 Oct 2023 16:49:08 +0000 (-0400) Subject: chroot-script: properly quote stage execution code X-Git-Tag: v0.106~7^2~12 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=6db61f4d5eb33d8e4855e001f0cbfe8aa2896496 chroot-script: properly quote stage execution code --- diff --git a/chroot-script b/chroot-script index 8a35f29..ec2453a 100755 --- a/chroot-script +++ b/chroot-script @@ -803,9 +803,9 @@ trap signal_handler HUP INT QUIT TERM initrd grub_install passwords \ custom_scripts upgrade_system remove_apt_cache services \ remove_chrootmirror; do - if stage $i ; then - $i - stage $i 'done' + if stage "$i" ; then + "$i" + stage "$i" 'done' fi done # always execute the finalize stage: