diff options
-rwxr-xr-x | oedquery.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oedquery.sh b/oedquery.sh index 6ab283c..d2d1082 100755 --- a/oedquery.sh +++ b/oedquery.sh @@ -59,7 +59,7 @@ _getdata() { # Return definition for the first sense of each lexical entry and create output string _define() { _getdata - for json in $(echo "${result}" | jq -r '.results[].lexicalEntries[] | @base64') + for json in $(echo "${result}" | jq -r '.results[0].lexicalEntries[] | @base64') do output="$output $(_jq '.lexicalCategory.text'): " # Sometimes there's no definition and so we can fall back to shortDefinition |