Fix test of string
[backups/.git] / 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