aboutsummaryrefslogtreecommitdiff
path: root/release/amd64
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2015-09-10 22:47:26 +0000
committerDevin Teske <dteske@FreeBSD.org>2015-09-10 22:47:26 +0000
commit27065039bc5e03d11a29cca64641feb5272c5d5b (patch)
tree5fda2db2fcbbfedba304aea947b85142a742211b /release/amd64
parent60b0aa6a8ffb87a54002c94a67d382a71ec54532 (diff)
downloadsrc-27065039bc5e03d11a29cca64641feb5272c5d5b.tar.gz
src-27065039bc5e03d11a29cca64641feb5272c5d5b.zip
Fix argument quoting and remove unnecessary braces
MFC after: 3 weeks X-MFC-to: stable/10
Notes
Notes: svn path=/head/; revision=287635
Diffstat (limited to 'release/amd64')
-rw-r--r--release/amd64/mkisoimages.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh
index 2b89d89cda25..755fb526f1cf 100644
--- a/release/amd64/mkisoimages.sh
+++ b/release/amd64/mkisoimages.sh
@@ -34,7 +34,7 @@ if [ "x$1" = "x-b" ]; then
mkdir efi
mount -t msdosfs /dev/$device efi
mkdir -p efi/efi/boot
- cp ${4}/boot/loader.efi efi/efi/boot/bootx64.efi
+ cp "$4/boot/loader.efi" efi/efi/boot/bootx64.efi
umount efi
rmdir efi
mdconfig -d -u $device
@@ -46,15 +46,15 @@ else
fi
if [ $# -lt 3 ]; then
- echo Usage: $0 '[-b] image-label image-name base-bits-dir [extra-bits-dir]'
+ echo "Usage: $0 [-b] image-label image-name base-bits-dir [extra-bits-dir]"
exit 1
fi
-LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
-NAME=$1; shift
+LABEL=`echo "$1" | tr '[:lower:]' '[:upper:]'`; shift
+NAME="$1"; shift
publisher="The FreeBSD Project. http://www.FreeBSD.org/"
-echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab
-makefs -t cd9660 $bootable -o rockridge -o label=$LABEL -o publisher="$publisher" $NAME $*
-rm $1/etc/fstab
+echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > "$1/etc/fstab"
+makefs -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME" "$@"
+rm "$1/etc/fstab"
rm -f efiboot.img