Skip to content

Commit 58195b8

Browse files
mplsgrantwillcl-ark
authored andcommitted
add minikube check
1 parent 0435d57 commit 58195b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

resources/scripts/setup_minikube.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ else
6363
ERROR_CODE=1
6464
fi
6565

66+
minikube_path=$(command -v minikube || true)
67+
if [ -n "$minikube_path" ]; then
68+
print_partial_message " ⭐️ Found " "minikube" ": $minikube_path " "$BOLD"
69+
else
70+
print_partial_message " 💥 Could not find " "minikube" ". Please follow this link to install it..." "$BOLD"
71+
print_message "" " https://minikube.sigs.k8s.io/docs/start/" "$BOLD"
72+
ERROR_CODE=127
73+
fi
74+
6675
if [ $ERROR_CODE -ne 0 ]; then
6776
print_message "" "There were errors in the setup process. Please fix them and try again." "$BOLD"
6877
exit $ERROR_CODE

0 commit comments

Comments
 (0)