diff options
-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 |