diff options
author | Ian Kelling <iank@fsf.org> | 2018-07-25 21:53:30 -0400 |
---|---|---|
committer | Ian Kelling <iank@fsf.org> | 2018-07-25 21:53:30 -0400 |
commit | 2ed42019b366f3cd6ab8f5bd6c234a19c1ef0629 (patch) | |
tree | 2a11a062a8208d6bdc46cb85b9f82152234a5105 /subprojects/freeamo/src/make-wiki | |
parent | cac3d5c10aa9123b968c503d5ae2f75b5d4eac9c (diff) |
fix 141 broken pipe error
The error could be ignored in this case but better to just remove quotes
properly and avoid it.
Diffstat (limited to 'subprojects/freeamo/src/make-wiki')
-rw-r--r-- | subprojects/freeamo/src/make-wiki | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/freeamo/src/make-wiki b/subprojects/freeamo/src/make-wiki index a148e74..b4de1a6 100644 --- a/subprojects/freeamo/src/make-wiki +++ b/subprojects/freeamo/src/make-wiki @@ -83,8 +83,8 @@ while IFS= read -r table; do # End description code # The homepage field is mandatory so let's remove "null" from it because we don't need to evaluat it - homepage_url=$(jq .results[$entry].homepage "$file" | sed "s|en-US|enUS|;" | jq .enUS | sed "s|^\"||; s|\"$||;" | sed "s|null||"); - license_copyright=$(jq .results[$entry].authors[].name "$file" | sed "s|^\"||; s|\"$||;"); + homepage_url=$(jq .results[$entry].homepage "$file" | sed "s|en-US|enUS|;" | jq -r .enUS | sed "s|null||"); + license_copyright=$(jq -r .results[$entry].authors[].name "$file" ); bayesian_average=$(jq .results[$entry].ratings.bayesian_average "$file"); bayesian_average__simple=$(printf "%.1f" "${bayesian_average//./,}"); |