aboutsummaryrefslogtreecommitdiff
path: root/release/powerpc
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/powerpc
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/powerpc')
-rw-r--r--release/powerpc/mkisoimages.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/release/powerpc/mkisoimages.sh b/release/powerpc/mkisoimages.sh
index b38d5efe4f6c..c92072d11d7f 100644
--- a/release/powerpc/mkisoimages.sh
+++ b/release/powerpc/mkisoimages.sh
@@ -25,18 +25,18 @@
if [ "x$1" = "x-b" ]; then
# Apple boot code
- uudecode -o /tmp/hfs-boot-block.bz2 `dirname $0`/hfs-boot.bz2.uu
+ uudecode -o /tmp/hfs-boot-block.bz2 "`dirname "$0"`/hfs-boot.bz2.uu"
bzip2 -d /tmp/hfs-boot-block.bz2
OFFSET=$(hd /tmp/hfs-boot-block | grep 'Loader START' | cut -f 1 -d ' ')
OFFSET=0x$(echo 0x$OFFSET | awk '{printf("%x\n",$1/512);}')
- dd if=$4/boot/loader of=/tmp/hfs-boot-block seek=$OFFSET conv=notrunc
+ dd if="$4/boot/loader" of=/tmp/hfs-boot-block seek=$OFFSET conv=notrunc
bootable="-o bootimage=macppc;/tmp/hfs-boot-block -o no-emul-boot"
# pSeries/PAPR boot code
- mkdir -p $4/ppc/chrp
- cp $4/boot/loader $4/ppc/chrp
- cat > $4/ppc/bootinfo.txt << EOF
+ mkdir -p "$4/ppc/chrp"
+ cp "$4/boot/loader" "$4/ppc/chrp"
+ cat > "$4/ppc/bootinfo.txt" << EOF
<chrp-boot>
<description>FreeBSD Install</description>
<os-name>FreeBSD</os-name>
@@ -46,7 +46,7 @@ EOF
bootable="$bootable -o chrp-boot"
# Playstation 3 boot code
- echo "FreeBSD Install='/boot/loader.ps3'" > $4/etc/kboot.conf
+ echo "FreeBSD Install='/boot/loader.ps3'" > "$4/etc/kboot.conf"
shift
else
@@ -54,16 +54,16 @@ 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 /tmp/hfs-boot-block
-rm -rf $1/ppc
+rm -rf "$1/ppc"