Commit d23485d4 authored by Aryaan Singh's avatar Aryaan Singh
Browse files

Fix exit condition in case of token fetch failure

parent ea2cfa06
Pipeline #62185 passed with stages
in 2 minutes and 8 seconds
...@@ -17,8 +17,8 @@ fi ...@@ -17,8 +17,8 @@ fi
echo "Trying to Fetch Access Token" echo "Trying to Fetch Access Token"
ACCESS_TOKEN=$(sh ./get_access_token.sh) ACCESS_TOKEN=$(sh ./get_access_token.sh)
if [[ "$ACCESS_TOKEN" == "TOKEN_FETCH_FAILURE" ]]; then if [[ "$ACCESS_TOKEN" == "TOKEN_FETCH_FAILURE" ]]; then
echo "Failure fetching Access Token" currentStatus="failure"
exit 1 currentMessage="${currentMessage}. Failure fetching Access Token. "
else else
echo "Access Token fetched successfully." echo "Access Token fetched successfully."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment