From e8150dfc9f31d7d36cd20f5e00212b415d4ba52d Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Fri, 8 Jan 2021 21:12:00 +0000 Subject: Correct wrong variable name. --- oedquery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oedquery.sh') diff --git a/oedquery.sh b/oedquery.sh index 8a7efd2..fb5634f 100755 --- a/oedquery.sh +++ b/oedquery.sh @@ -64,7 +64,7 @@ _define() { output="$output $(_jq '.lexicalCategory.text'): " # Sometimes there's no definition and so we can fall back to shortDefinition definition=$(_jq '.entries[0].senses[0].definitions[0]') - if [[ -z $defintion ]] + if [[ -z "$definition" ]] then definition=$(_jq '.entries[0].senses[0].shortDefinitions[0]') if [[ $definition == "null" ]] -- cgit v1.2.3