Fix test of string
authorCarl N. Baldwin <carl.n.baldwin@hp.com>
Mon, 12 Dec 2005 16:43:17 +0000 (09:43 -0700)
committerCarl N. Baldwin <carl.n.baldwin@hp.com>
Mon, 12 Dec 2005 16:43:17 +0000 (09:43 -0700)
scripts/pack-image.sh

index ce985fa2eb13c00d93cfd11ec07faa36af7b3393..05290353374ffae80689d09d72d106b2b64365fe 100755 (executable)
@@ -76,7 +76,7 @@ echo "-> Running find to get the status of files"
   done
 } > $currentfiles
 
-if [ -n $simulate ]; then
+if [ -n "$simulate" ]; then
   backupdbin=$backupdbout
 fi
 
@@ -87,7 +87,7 @@ echo "-> Determining list of files to backup with lsbackups"
   cat $currentfiles
 } | lsbackups > $backups 2>$statusfile
 
-if [ -n $simulate ]; then
+if [ -n "$simulate" ]; then
    umount $isomountdir
    rm -rf $isomountdir $isoimage
    cat $statusfile