sys-boot/systemrescuecd-x86-grub: Quote paths
authorReinis Danne <rei4dan@gmail.com>
Sun, 10 Mar 2019 09:54:58 +0000 (11:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 5 Jul 2019 20:31:25 +0000 (22:31 +0200)
Signed-off-by: Reinis Danne <rei4dan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11318
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.grub-2

index 26857d23e90f1341ee963a54675651761bb3dd27..332a7c37fce0594856ffb900affba6720965859e 100755 (executable)
@@ -129,7 +129,7 @@ if [ "${COPY_SRCD_TO_BOOT}" = yes ]; then
 fi
 
 # Build menu entries
-for isopref in ${bootdir} ${installdir}; do
+for isopref in "${bootdir}" "${installdir}"; do
        # Make sure there are any ISOs
        ls "${isopref}" | grep -E -q -e "${isorex}" || continue