diff options
author | Asa Venton <asav1410@gmail.com> | 2020-10-19 19:48:27 +0100 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2020-10-19 19:48:27 +0100 |
commit | 9bd1d4fb7d0be7757c34023ee8cd140a52ff7079 (patch) | |
tree | 0d9d763e850549e1d708504cf87ba4350c216c77 /oedquery.sh | |
parent | bbcfc66e10fbaadec6491771ca44b2c53c9bfadd (diff) |
Fix check no returned etymology.
Diffstat (limited to 'oedquery.sh')
-rwxr-xr-x | oedquery.sh | 2 |
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 |