From 9f0888fd9ffcbb319722a39e9f357693800f2b6b Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Sun, 8 Jun 2008 01:09:27 +0200 Subject: [PATCH] live-snapshot: nicer default auto unmount logic. --- bin/live-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/live-snapshot b/bin/live-snapshot index 03245ea..5837f5d 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -307,7 +307,7 @@ Do_snapshot () Clean () { - if echo "${DEST}" | grep -q "${MOUNTP}" + if [ -z "${SNAP_RESYNC_STRING}" ] && echo "${DEST}" | grep -q "${MOUNTP}" then echo "${DEST} is present on ${MOUNTP}, therefore no automatic unmounting the latter." > /dev/null 1>&2 else -- 2.1.4