From 9bd1d4fb7d0be7757c34023ee8cd140a52ff7079 Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Mon, 19 Oct 2020 19:48:27 +0100 Subject: Fix check no returned etymology. --- oedquery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3