diff options
author | Devin Teske <dteske@FreeBSD.org> | 2015-09-10 22:47:26 +0000 |
---|---|---|
committer | Devin Teske <dteske@FreeBSD.org> | 2015-09-10 22:47:26 +0000 |
commit | 27065039bc5e03d11a29cca64641feb5272c5d5b (patch) | |
tree | 5fda2db2fcbbfedba304aea947b85142a742211b /release/amd64 | |
parent | 60b0aa6a8ffb87a54002c94a67d382a71ec54532 (diff) | |
download | src-test-27065039bc5e03d11a29cca64641feb5272c5d5b.tar.gz src-test-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.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh index 2b89d89cda253..755fb526f1cf1 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 |