[Fedora-livecd-list] Branch 'f17-branch' - tools/livecd-iso-to-disk.sh

Brian C. Lane bcl at fedoraproject.org
Mon Apr 23 20:29:59 UTC 2012


 tools/livecd-iso-to-disk.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4ba4b5dfbc158f6082aadfe09f7816949e4b1bba
Author: Brian C. Lane <bcl at redhat.com>
Date:   Mon Apr 23 13:26:41 2012 -0700

    fix quoting with basename and SRC (#814174)

diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 13437d4..95f0fae 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -1109,8 +1109,8 @@ if [ "$srctype" = "installer" ]; then
     if [ -e $TGTMNT/$imgpath ]; then
         tbd=$(du -s -B 1M $TGTMNT/$imgpath | awk {'print $1;'})
     fi
-    if [ -e $TGTMNT/$(basename "$SRC") ]; then
-        tbd=$(($tbd + $(du -s -B 1M $TGTMNT/$(basename "$SRC") | awk {'print $1;'})))
+    if [ -e "$TGTMNT/$(basename "$SRC")" ]; then
+        tbd=$(($tbd + $(du -s -B 1M "$TGTMNT/$(basename "$SRC")" | awk {'print $1;'})))
     fi
     echo "Size of $imgpath: $installimgsize"
     echo "Available space: $((freespace + tbd))"




More information about the livecd mailing list