File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,15 @@ RESPONSE=$(curl --max-time 3 -s -w "%{http_code}" "$API_URL" -o /dev/null) || tr
1818CURL_EXIT_CODE=${?}
1919
2020# Check if the response code is not 200
21- if [ $CURL_EXIT_CODE -ne 0 ] || [ " $RESPONSE " != " 200" ]; then
22- if [ -z " $RESPONSE " ] || [ " $RESPONSE " == " 000" ] || [ $CURL_EXIT_CODE -ne 0 ]; then
23- echo " Timeout or API not reachable. Continuing to next step."
24- else
25- echo " Subscription is not valid. Reach out to support@stepsecurity.io"
26- exit 1
27- fi
21+ if [ $CURL_EXIT_CODE -ne 0 ]; then
22+ echo " Timeout or API not reachable. Continuing to next step."
23+ elif [ " $RESPONSE " = " 200" ]; then
24+ :
25+ elif [ " $RESPONSE " = " 403" ]; then
26+ echo " Subscription is not valid. Reach out to support@stepsecurity.io"
27+ exit 1
28+ else
29+ echo " Timeout or API not reachable. Continuing to next step."
2830fi
2931
3032MILESTONE_ID_TO_USE=${MILESTONE_NUMBER:- $PROVIDED_MILESTONE_ID }
You can’t perform that action at this time.
0 commit comments