fix the VM existence check in deletion
This commit is contained in:
parent
bdd27b2178
commit
25c0f4acb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user