From 255a15a568003eeff6c33dccc7c40784f146af46 Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Fri, 8 Jan 2021 21:20:23 +0000 Subject: Fix misspelt word in help text. --- oedquery.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oedquery.sh b/oedquery.sh index fb5634f..5c90ec4 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 "$definition" ]] + if [[ -z $definition ]] then definition=$(_jq '.entries[0].senses[0].shortDefinitions[0]') if [[ $definition == "null" ]] @@ -72,7 +72,7 @@ _define() { definition=$(_jq '.entries[0].senses[0].crossReferenceMarkers[0]') if [[ $definition == "null" ]] then - echo "No definiton found, if you're sure it's a word try the headword or use -h for help." + echo "No definition found, if you're sure it's a word try the headword or use -h for help." exit fi fi -- cgit v1.2.3