aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src/unmaintained/bad_names
diff options
context:
space:
mode:
authordavid <public@beloved.name>2018-07-26 22:00:46 +0200
committerdavid <public@beloved.name>2018-07-26 22:00:46 +0200
commitef454290322d19fadc4525b7ccf0338683c9ef5b (patch)
treed378d6860f401e65a014376d6814b7c81f6d7c2f /subprojects/freeamo/src/unmaintained/bad_names
parentddab6e2df15722baf1c15522bd39c49be61c7b48 (diff)
Improved a few commands with jq -r
Diffstat (limited to 'subprojects/freeamo/src/unmaintained/bad_names')
-rw-r--r--subprojects/freeamo/src/unmaintained/bad_names4
1 files changed, 2 insertions, 2 deletions
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