Meta: Use double quotes for variables

This was found by the `shellcheck` provided with the Ubuntu 24.04
image.
This commit is contained in:
Lucas CHOLLET authored and Sönke Holz committed 2025-10-20 13:08:24 +02:00
1 parent 896fda5ea8
commit a9648f887b
1 file changed
+3 -3
+3 -3
View File
@@ -30,7 +30,7 @@ for dir in "/usr/lib/syslinux/bios" "/usr/lib/syslinux" "/usr/share/syslinux"; d
break
fi
done
if [ -z $syslinux_dir ]; then
if [ -z "$syslinux_dir" ]; then
echo "can't find syslinux directory"
exit 1
fi
@@ -96,7 +96,7 @@ mkdir -p mnt/boot/extlinux
extlinux --install mnt/boot/extlinux
cp "$extlinux_cfg" mnt/boot/extlinux/extlinux.conf
for module in mboot.c32 menu.c32 libutil.c32 libcom32.c32; do
cp $syslinux_dir/$module mnt/boot/extlinux/
cp "$syslinux_dir"/"$module" mnt/boot/extlinux/
done
dd bs=440 count=1 conv=notrunc if=$syslinux_dir/mbr.bin of="$dev"
dd bs=440 count=1 conv=notrunc if="$syslinux_dir"/mbr.bin of="$dev"
echo "done"