diff options
Diffstat (limited to 'oedquery.sh')
-rwxr-xr-x | oedquery.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oedquery.sh b/oedquery.sh index 5c90ec4..322e908 100755 --- a/oedquery.sh +++ b/oedquery.sh @@ -25,6 +25,11 @@ _curl() { echo "Authentication failed, probably exceeded monthly usage." exit 0 fi + if [[ "$result" == "Usage limit exceeded. Please, review your plan and minute rate limits." ]] + then + echo "Usage limit exceeded. Tell ars to fix." + exit 0 + fi ((curlCount=curlCount+1)) } |