summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-05 13:02:13 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:48 +0100
commitc9943f079f8ec1393adf475c7a0bdad6ec9a4364 (patch)
tree7d8df6cc5a910f6a5cc13cce7485ab9bc216cfd3
parentbf74055024787912d2a6abb6f67315a65a764728 (diff)
downloadvyos-live-build-c9943f079f8ec1393adf475c7a0bdad6ec9a4364.tar.gz
vyos-live-build-c9943f079f8ec1393adf475c7a0bdad6ec9a4364.zip
Escaping variables in binary.sh of lh_binary_iso, thanks to Luigi Capriotti <l.capriotti@xbmc.org>.
-rwxr-xr-xhelpers/lh_binary_iso16
1 files changed, 8 insertions, 8 deletions
diff --git a/helpers/lh_binary_iso b/helpers/lh_binary_iso
index d9f390255..a4dc2ac16 100755
--- a/helpers/lh_binary_iso
+++ b/helpers/lh_binary_iso
@@ -148,20 +148,20 @@ input_dir=/usr/lib/grub/i386-pc
# build core.img
core_img=\$(mktemp)
-grub-mkimage -d ${input_dir} -o ${core_img} biosdisk iso9660
+grub-mkimage -d \${input_dir} -o \${core_img} biosdisk iso9660
# build grub_eltorito image
-cat ${input_dir}/cdboot.img ${core_img} > binary/boot/grub/grub_eltorito
+cat \${input_dir}/cdboot.img \${core_img} > binary/boot/grub/grub_eltorito
-rm -f ${core_img}
+rm -f \${core_img}
-for file in ${input_dir}/*.mod ${input_dir}/efiemu??.o \
- ${input_dir}/command.lst ${input_dir}/moddep.lst ${input_dir}/fs.lst \
- ${input_dir}/handler.lst ${input_dir}/parttool.lst
+for file in \${input_dir}/*.mod \${input_dir}/efiemu??.o \
+ \${input_dir}/command.lst \${input_dir}/moddep.lst \${input_dir}/fs.lst \
+ \${input_dir}/handler.lst \${input_dir}/parttool.lst
do
- if test -f "$file"
+ if test -f "\$file"
then
- cp -f "$file" binary/boot/grub
+ cp -f "\$file" binary/boot/grub
fi
done
EOF