From 8400e80d4a3eccc81a4905d573cf838ed62bf1f6 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 16 Feb 2019 09:31:43 +0100 Subject: [PATCH] fixed bug in clone_vm.sh --- clone_vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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