From ef52a521db727bec6901308893d74559904c7cd2 Mon Sep 17 00:00:00 2001 From: edison Date: Thu, 14 Oct 2010 22:27:54 -0700 Subject: [PATCH] hot fix for snapshot migration script --- setup/bindir/cloud-migrate-snapshot.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/bindir/cloud-migrate-snapshot.in b/setup/bindir/cloud-migrate-snapshot.in index 7b0f309c083..78b1ac6b3ec 100644 --- a/setup/bindir/cloud-migrate-snapshot.in +++ b/setup/bindir/cloud-migrate-snapshot.in @@ -31,14 +31,14 @@ then exit 2 fi -if [ ! -f $mountPath ] +if [ ! -d $mountPath ] then echo "$mountPath does not exist, please specify a valid path" exit 2 fi mountPath=$mountPath/snapshots -if [ ! -f $mountPath ] +if [ ! -d $mountPath ] then echo "No snapshots exit, nothing to do" exit 0