Skip to content

Commit

Permalink
fixed output of errors when everything is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed Apr 23, 2024
1 parent 0e662e3 commit 2ede51f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checks/kube/connectivity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SCRIPT_STATUS_OUTPUT=0

# Check if all required options are provided
if [ -z "$NAMESPACE" ]; then
echo "Error: Missing one of the required options (list of all required options: NAMESPACE)." 1>&2
echo "Error: Missing one of the required options (list of all required options: NAMESPACE)." 1>&2
usage
fi

Expand Down
2 changes: 1 addition & 1 deletion checks/zeebe/connectivity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ SCRIPT_STATUS_OUTPUT=0

# Check if all required options are provided
if [ -z "$ZEEBE_HOST" ]; then
echo "Error: Missing one of the required options (list of all required options: ZEEBE_HOST)." 1>&2
echo "Error: Missing one of the required options (list of all required options: ZEEBE_HOST)." 1>&2
usage
fi

Expand Down
2 changes: 1 addition & 1 deletion checks/zeebe/token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SCRIPT_STATUS_OUTPUT=0

# Check if all required options are provided
if [ -z "$ZEEBE_AUTHORIZATION_SERVER_URL" ] || [ -z "$ZEEBE_CLIENT_ID" ] || [ -z "$ZEEBE_CLIENT_SECRET" ] || [ -z "$ZEEBE_TOKEN_AUDIENCE" ]; then
echo "Error: Missing one of the required options (list of all required options: ZEEBE_AUTHORIZATION_SERVER_URL, ZEEBE_CLIENT_ID, ZEEBE_CLIENT_SECRET, ZEEBE_TOKEN_AUDIENCE)." 1>&2
echo "Error: Missing one of the required options (list of all required options: ZEEBE_AUTHORIZATION_SERVER_URL, ZEEBE_CLIENT_ID, ZEEBE_CLIENT_SECRET, ZEEBE_TOKEN_AUDIENCE)." 1>&2
usage
fi

Expand Down

0 comments on commit 2ede51f

Please sign in to comment.