1
1
Fork 0

fixed bug in clone_vm.sh

This commit is contained in:
david 2019-02-16 09:31:43 +01:00
parent 2cbcc8c85a
commit 8400e80d4a
1 changed files with 1 additions and 1 deletions

View File

@ -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