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
echo "Trying to Fetch Access Token"
ACCESS_TOKEN=$(sh ./get_access_token.sh)
if [[ "$ACCESS_TOKEN" == "TOKEN_FETCH_FAILURE" ]]; then
echo "Failure fetching Access Token"
exit 1
currentStatus="failure"
currentMessage="${currentMessage}. Failure fetching Access Token. "
else
echo "Access Token fetched successfully."
......
Markdown is supported
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