Fixed a wrong trial to copy an unexistant snapshot.
authorMarco Amadori <amadorim@vdavda.com>
Tue, 16 Sep 2008 14:13:18 +0000 (16:13 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:02 +0000 (17:48 +0100)
* Quoting a variable could do miracles :-)

scripts/live

index 08810cb..b7fd4ce 100755 (executable)
@@ -921,7 +921,7 @@ try_snap ()
        else
                dev=$(find_cow_device "${snap_label}")
 
-               if [ -b ${dev} ]
+               if [ -b "${dev}" ]
                then
                        if echo "${dev}" | grep -qs loop
                        then