Skip to content

Commit

Permalink
Fix check-cluster logic (#466)
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Tofel <btofel@redhat.com>
  • Loading branch information
bentito authored Nov 18, 2024
1 parent 4dd7d59 commit 662e227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 662e227

Please sign in to comment.