From ef454290322d19fadc4525b7ccf0338683c9ef5b Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Jul 2018 22:00:46 +0200 Subject: Improved a few commands with jq -r --- subprojects/freeamo/src/unmaintained/bad_names | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subprojects/freeamo/src/unmaintained/bad_names') diff --git a/subprojects/freeamo/src/unmaintained/bad_names b/subprojects/freeamo/src/unmaintained/bad_names index 6ba8891..c55cb34 100644 --- a/subprojects/freeamo/src/unmaintained/bad_names +++ b/subprojects/freeamo/src/unmaintained/bad_names @@ -2,11 +2,11 @@ function search-pages--filter__bad_names() { -name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-US|enUS|;" | jq .enUS | sed "s|^\"||; s|\"$||;"); +name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-US|enUS|;" | jq -r .enUS); if [ "$name" == "null" ]; then -name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-GB|enGB|;" | jq .enGB | sed "s|^\"||; s|\"$||;"); +name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-GB|enGB|;" | jq -r .enGB); fi -- cgit v1.2.3