diff options
author | Asa Venton <asav1410@gmail.com> | 2021-01-08 21:20:23 +0000 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2021-01-08 21:20:23 +0000 |
commit | 255a15a568003eeff6c33dccc7c40784f146af46 (patch) | |
tree | a6efbb165457f75e1e88ac077321019fcd8a6588 | |
parent | e8150dfc9f31d7d36cd20f5e00212b415d4ba52d (diff) |
Fix misspelt word in help text.
-rwxr-xr-x | oedquery.sh | 4 |
1 files 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 |