From 91e19a2c44727f0a508567045f2f4e8d05469bec Mon Sep 17 00:00:00 2001 From: Jianhong Yin Date: Fri, 19 Mar 2021 17:38:46 +0800 Subject: [PATCH] kiss-vm: fix download image fail if default vm exist Signed-off-by: Jianhong Yin --- kiss-vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss-vm b/kiss-vm index a1836dc..54a63c5 100755 --- a/kiss-vm +++ b/kiss-vm @@ -1697,7 +1697,7 @@ fi if [[ "${OVERWRITE}" = "yes" ]]; then echo "{VM:INFO} VM $vmname has been there, remove it ..." _vmdelete $vmname - else + elif [[ "${DOWNLOAD_ONLY}" != "yes" ]]; then echo "{VM:INFO} VM $vmname has been there, if you want overwrite please use --force option" exit fi