Skip to content

Commit

Permalink
fix syntax:App_Curl_url()
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Andy <[email protected]>
  • Loading branch information
pascalandy committed May 4, 2022
1 parent 4e39813 commit 5c320e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/sidecars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ function App_Curl_url { #Side_
UPTIME_TEST=$(curl -Is ${url_to_check} | grep -io OK | head -1);
MATCH_UPTIME_TEST1="OK";
MATCH_UPTIME_TEST2="ok";
if [[ "$UPTIME_TEST" = "$MATCH_UPTIME_TEST1" ]] || [[ "$UPTIME_TEST" = "$MATCH_UPTIME_TEST2" ]]; then
if [[ "${UPTIME_TEST}" = "${MATCH_UPTIME_TEST1}" ]] || [[ "${UPTIME_TEST}" = "${MATCH_UPTIME_TEST2}" ]]; then
my_message="${url_to_check} <== is online" && Print_Green
elif [[ "$UPTIME_TEST" != "$MATCH_UPTIME_TEST1" ]] || [[ "$UPTIME_TEST" = "$MATCH_UPTIME_TEST2" ]]; then
elif [[ "${UPTIME_TEST}" != "${MATCH_UPTIME_TEST1}" ]] || [[ "${UPTIME_TEST}" = "${MATCH_UPTIME_TEST2}" ]]; then
my_message="${url_to_check} <== is offline" && Print_Warning
my_message="The git up repo URL is not responding." && Print_Fatal
fi
Expand Down

0 comments on commit 5c320e4

Please sign in to comment.