summaryrefslogtreecommitdiff
path: root/oedquery.sh
diff options
context:
space:
mode:
Diffstat (limited to 'oedquery.sh')
-rwxr-xr-xoedquery.sh4
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