diff --git a/clone_vm.sh b/clone_vm.sh index a567a75..572f7bb 100755 --- a/clone_vm.sh +++ b/clone_vm.sh @@ -29,7 +29,7 @@ if [ -z $a ] || [ $a == "Y" ] || [ $a == "y" ]; then destination=${2%/} sleep 0.5; echo "INFO: Preflight checks good. Commencing cloning process." for disk in $(find "$source" -maxdepth 1 -type f | grep ".vmdk" | grep -v "flat.vmdk"); do - if [ -z "${disk##*delta*}" ]; then + if [ -n "${disk##*delta*}" ]; then echo "ERROR: You little rebel did not remove all snapshots. Failsave exit!"; exit 1 fi #try the following to move a specific snapshot