fixed bug in clone_vm.sh
This commit is contained in:
parent
2cbcc8c85a
commit
8400e80d4a
|
@ -29,7 +29,7 @@ if [ -z $a ] || [ $a == "Y" ] || [ $a == "y" ]; then
|
||||||
destination=${2%/}
|
destination=${2%/}
|
||||||
sleep 0.5; echo "INFO: Preflight checks good. Commencing cloning process."
|
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
|
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
|
echo "ERROR: You little rebel did not remove all snapshots. Failsave exit!"; exit 1
|
||||||
fi
|
fi
|
||||||
#try the following to move a specific snapshot
|
#try the following to move a specific snapshot
|
||||||
|
|
Loading…
Reference in New Issue