Skip to content

Commit 6423c2f

Browse files
mplsgrantwillcl-ark
authored andcommitted
add ERROR_CODE
1 parent 3318334 commit 6423c2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/scripts/setup_minikube.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if [ -z "${WAR_RPC+x}" ]; then
88
exit 1
99
fi
1010

11+
ERROR_CODE=0
12+
1113
# Colors and styles
1214
RESET='\033[0m'
1315
BOLD='\033[1m'
@@ -37,6 +39,11 @@ print_partial_message() {
3739

3840
echo -e "${color}${pre_message}${format}${formatted_part}${RESET}${color}${post_message}${RESET}"
3941
}
42+
if [ $ERROR_CODE -ne 0 ]; then
43+
print_message "" "There were errors in the setup process. Please fix them and try again." "$BOLD"
44+
exit $ERROR_CODE
45+
fi
46+
4047
# Check minikube status
4148
minikube delete
4249

0 commit comments

Comments
 (0)