From 117a9721b41084992e1520ee4cb8bbbf6415afea Mon Sep 17 00:00:00 2001 From: Brett Tofel Date: Mon, 18 Nov 2024 10:13:10 -0500 Subject: [PATCH] Fix check-cluster logic Signed-off-by: Brett Tofel --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf496a24..1c610fb5 100644 --- a/Makefile +++ b/Makefile @@ -277,7 +277,7 @@ demo-update: .PHONY: check-cluster check-cluster: - if ! kubectl config current-context >/dev/null 2>&1; then \ + @kubectl config current-context >/dev/null 2>&1 || ( \ echo "Error: Could not get current Kubernetes context. Maybe use 'run' or 'e2e' targets first?"; \ exit 1; \ - fi + )