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

New commits:
commit 5ed65059ca0b644ba21eda6d4f730d8e9160a93e
Author: Brian C. Lane <[email protected]>
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))"


--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to