fix the VM existence check in deletion

This commit is contained in:
Solène Rapenne 2023-06-11 17:17:39 +02:00
parent bdd27b2178
commit 25c0f4acb5

View File

@ -8,7 +8,7 @@ fi
NAME=${1:-kube}
if vmctl show $NAME
if vmctl show $NAME | awk '{ print $NF }' | grep "^${NAME}$"
then
if vmctl show $NAME | grep running >/dev/null
then