Exit with error upon failure to get token

When there's a failure to get the token from https://www.privateinternetaccess.com/api/client/v2/token exit with an error status of 1 instead of success
This commit is contained in:
Craig Andrews 2023-01-17 11:54:55 -05:00 committed by GitHub
parent e37693326d
commit d5dbf0e552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ if [ "$(echo "$generateTokenResponse" | jq -r '.token')" == "" ]; then
echo
echo -e "${red}Could not authenticate with the login credentials provided!${nc}"
echo
exit
exit 1
fi
echo -e "${green}OK!"