mirror of
https://github.com/pia-foss/manual-connections.git
synced 2025-02-05 14:08:29 +00:00
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:
parent
e37693326d
commit
d5dbf0e552
|
@ -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!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user