diff --git a/hack/scripts/kind-with-registry.sh b/hack/scripts/kind-with-registry.sh index e76ffb0..5aa1b41 100755 --- a/hack/scripts/kind-with-registry.sh +++ b/hack/scripts/kind-with-registry.sh @@ -20,7 +20,7 @@ fi KIND_CLUSTER_NAME=${GARM_KIND_CLUSTER_NAME:-"garm"} # 1. If kind cluster already exists exit. -if [[ "$(kind get clusters)" =~ .*"${KIND_CLUSTER_NAME}".* ]]; then +if [[ "$(kind get clusters)" = "${KIND_CLUSTER_NAME}" ]]; then echo "kind cluster already exists, moving on" exit 0 fi