chroot-script: properly quote stage execution code
authorPatrick Schleizer <adrelanos@whonix.org>
Wed, 25 Oct 2023 16:49:08 +0000 (12:49 -0400)
committerPatrick Schleizer <adrelanos@whonix.org>
Thu, 7 Dec 2023 18:51:55 +0000 (13:51 -0500)
chroot-script

index 8a35f29..ec2453a 100755 (executable)
@@ -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: