summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-07-19 23:00:15 +0200
committer Eric Hameleers <alien@slackware.com>2017-07-19 23:00:15 +0200
commit7d22682ddd36a23b6c55652ba59b9a05c19a8b7a (patch)
tree50b552a6e7430b397d049e4666d958bcc8c6c18d /iso2usb.sh
parente4eaac3bacbe0e52440c91f618074058969fd037 (diff)
downloadliveslak-7d22682ddd36a23b6c55652ba59b9a05c19a8b7a.tar.gz
liveslak-7d22682ddd36a23b6c55652ba59b9a05c19a8b7a.tar.xz
iso2usb.sh: add quotes around $SLISO to allow for spaces in te pathname
Diffstat (limited to 'iso2usb.sh')
-rw-r--r--iso2usb.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index 6deb916..60489b3 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -447,7 +447,7 @@ if [ -z "$TARGET" -o -z "$SLISO" ]; then
exit 1
fi
-if [ $FORCE -eq 0 -a ! -f $SLISO ]; then
+if [ $FORCE -eq 0 -a ! -f "$SLISO" ]; then
echo "*** This is not a useable file: '$SLISO' !"
exit 1
fi
@@ -475,7 +475,7 @@ if [ ! -z "$PROG_MISSING" ] ; then
fi
# Retrieve the version information from the ISO:
-VERSION=$(isoinfo -d -i ${SLISO} 2>/dev/null |grep Application |cut -d: -f2-)
+VERSION=$(isoinfo -d -i "${SLISO}" 2>/dev/null |grep Application |cut -d: -f2-)
if [ $REFRESH -eq 0 ]; then
# We are creating a USB stick from scratch,
@@ -522,7 +522,7 @@ if [ $REFRESH -eq 0 ]; then
# Continue with the wipe/partitioning/formatting.
# Get the LABEL used for the ISO:
- LIVELABEL=$(blkid -s LABEL -o value ${SLISO})
+ LIVELABEL=$(blkid -s LABEL -o value "${SLISO}")
# Use sgdisk to wipe and then setup the USB device:
# - 1 MB BIOS boot partition
@@ -588,7 +588,7 @@ fi
mount -t auto ${TARGET}3 ${USBMNT}
# Loop-mount the ISO (or 1st partition if this is a hybrid ISO):
-mount -o loop ${SLISO} ${ISOMNT}
+mount -o loop "${SLISO}" ${ISOMNT}
# Find out if the ISO contains an EFI bootloader and use it:
if [ ! -f ${ISOMNT}/EFI/BOOT/boot*.efi ]; then