From 5e0c5485ff3a6168a60837adbcd8d0613375ed1e Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Tue, 17 May 2022 19:07:48 +0100 Subject: Create var for maintainer and call from certain error messages --- oedquery.conf.example | 3 +++ oedquery.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/oedquery.conf.example b/oedquery.conf.example index a98c46d..ca83b12 100644 --- a/oedquery.conf.example +++ b/oedquery.conf.example @@ -4,6 +4,9 @@ appId= appKey= +# Enter maintainer name - this is used for certain error messages like exceeded usage limit +maintainer= + # Enter desired language here - supported languages: https://developer.oxforddictionaries.com/documentation/languages language=en-gb # Desired max synonyms - some entries have a crazy number of them diff --git a/oedquery.sh b/oedquery.sh index 322e908..0c2a2ab 100755 --- a/oedquery.sh +++ b/oedquery.sh @@ -27,7 +27,7 @@ _curl() { fi if [[ "$result" == "Usage limit exceeded. Please, review your plan and minute rate limits." ]] then - echo "Usage limit exceeded. Tell ars to fix." + echo "Usage limit exceeded. Tell $maintainer to fix." exit 0 fi ((curlCount=curlCount+1)) -- cgit v1.2.3