aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/freeamo/src')
-rw-r--r--subprojects/freeamo/src/main_functions2
-rw-r--r--subprojects/freeamo/src/make-wiki4
2 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/freeamo/src/main_functions b/subprojects/freeamo/src/main_functions
index ad7c435..06ddad6 100644
--- a/subprojects/freeamo/src/main_functions
+++ b/subprojects/freeamo/src/main_functions
@@ -69,7 +69,7 @@ echo "####################"
tmp__enGB=$(jq ".results[$entry].$locale_description" "$file" | sed "s|-||;" | jq -r .enGB )
# Use the first avalible if English is not avaliable
- tmp=$(jq -r ".results[$entry].$locale_description[]" "$file" | head -n 1)
+ tmp=$(jq -r ".results[$entry].$locale_description[]" "$file" | head -n 1) || [[ $? == 141 ]] # jq causes superfluous 141
# David will work on this later
# if [ "$tmp" == "" ]; then
diff --git a/subprojects/freeamo/src/make-wiki b/subprojects/freeamo/src/make-wiki
index b4de1a6..94761b4 100644
--- a/subprojects/freeamo/src/make-wiki
+++ b/subprojects/freeamo/src/make-wiki
@@ -115,7 +115,7 @@ while IFS= read -r table; do
- github_true=$(echo "$homepage_url" | grep "github.com");
+ github_true=$(echo "$homepage_url" | grep "github.com") ||: # ok if grep fails
if [[ $github_true != "" ]]; then
@@ -213,7 +213,7 @@ at https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
fi
- echo "foo" # Must be here to work with pv
+ if ! $debug; then echo "foo"; fi # for pv
done < "$output_file_2" # | pv__progress
# End template