summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsa Venton <asav1410@gmail.com>2022-05-17 19:07:48 +0100
committerAsa Venton <asav1410@gmail.com>2022-05-17 19:07:48 +0100
commit5e0c5485ff3a6168a60837adbcd8d0613375ed1e (patch)
tree3e7cc717695c86975a94d46796a42bf65b890f9c
parent8b32ae8b3a66f15cad69d7e974d2c9982541ebb6 (diff)
Create var for maintainer and call from certain error messages
-rw-r--r--oedquery.conf.example3
-rwxr-xr-xoedquery.sh2
2 files changed, 4 insertions, 1 deletions
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))