summaryrefslogtreecommitdiff
path: root/oedquery.sh
diff options
context:
space:
mode:
authorAsa Venton <asav1410@gmail.com>2020-10-19 19:48:27 +0100
committerAsa Venton <asav1410@gmail.com>2020-10-19 19:48:27 +0100
commit9bd1d4fb7d0be7757c34023ee8cd140a52ff7079 (patch)
tree0d9d763e850549e1d708504cf87ba4350c216c77 /oedquery.sh
parentbbcfc66e10fbaadec6491771ca44b2c53c9bfadd (diff)
Fix check no returned etymology.
Diffstat (limited to 'oedquery.sh')
-rwxr-xr-xoedquery.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/oedquery.sh b/oedquery.sh
index 7be1957..043467f 100755
--- a/oedquery.sh
+++ b/oedquery.sh
@@ -68,7 +68,7 @@ _define() {
_etym() {
_getdata
output=$(echo "${result}" | jq '.results[].lexicalEntries[0].entries[0].etymologies[0]' | tr -d \")
- if [ -z "$output" ]
+ if [[ "$output" = "null" ]]
then
echo "No etymology found."
else