aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src/make-wiki
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/make-wiki
parentddab6e2df15722baf1c15522bd39c49be61c7b48 (diff)
Improved a few commands with jq -r
Diffstat (limited to 'subprojects/freeamo/src/make-wiki')
-rw-r--r--subprojects/freeamo/src/make-wiki4
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/freeamo/src/make-wiki b/subprojects/freeamo/src/make-wiki
index 94761b4..657430d 100644
--- a/subprojects/freeamo/src/make-wiki
+++ b/subprojects/freeamo/src/make-wiki
@@ -137,8 +137,8 @@ while IFS= read -r table; do
fi
- support_url=$(jq .results[$entry].support_url "$file" | sed "s|en-US|enUS|;" | jq .enUS | sed "s|^\"||; s|\"$||;");
- last_updated=$(jq .results[$entry].last_updated $file | sed "s|^\"||; s|\"$||;" | sed "s|T|\n|" | head -n 1 | sed "s|-|/|g");
+ support_url=$(jq .results[$entry].support_url "$file" | sed "s|en-US|enUS|;" | jq -r .enUS);
+ last_updated=$(jq -r .results[$entry].last_updated $file | sed "s|T|\n|" | head -n 1 | sed "s|-|/|g");
# List JSON structure: cat json/$file | js '.'
# XML value "homepage" is not always set in AMO API, but the XML require "Homepage URL" to be set: Therfore we use the AMO page itself in Homepage URL to complete the build of the repo automatically.