summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xoedquery.sh2
1 files changed, 1 insertions, 1 deletions
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" ]]