diff options
author | Asa Venton <asav1410@gmail.com> | 2021-01-08 21:12:00 +0000 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2021-01-08 21:12:00 +0000 |
commit | e8150dfc9f31d7d36cd20f5e00212b415d4ba52d (patch) | |
tree | 74ce11e2260f212272c9a027da41db8a3dfe9892 | |
parent | dae44f9e7bf09243dae48de33caf2a10935819b1 (diff) |
Correct wrong variable name.
-rwxr-xr-x | oedquery.sh | 2 |
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" ]] |