Skip to content

Commit 662e227

Browse files
authored
Fix check-cluster logic (#466)
Signed-off-by: Brett Tofel <[email protected]>
1 parent 4dd7d59 commit 662e227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ demo-update:
277277

278278
.PHONY: check-cluster
279279
check-cluster:
280-
if ! kubectl config current-context >/dev/null 2>&1; then \
280+
@kubectl config current-context >/dev/null 2>&1 || ( \
281281
echo "Error: Could not get current Kubernetes context. Maybe use 'run' or 'e2e' targets first?"; \
282282
exit 1; \
283-
fi
283+
)

0 commit comments

Comments
 (0)