aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src/get-add-ons
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/freeamo/src/get-add-ons')
-rw-r--r--subprojects/freeamo/src/get-add-ons4
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/freeamo/src/get-add-ons b/subprojects/freeamo/src/get-add-ons
index f7307d5..b2491ba 100644
--- a/subprojects/freeamo/src/get-add-ons
+++ b/subprojects/freeamo/src/get-add-ons
@@ -47,7 +47,7 @@ function get-add-ons--download {
# Add-ons not avalible for GNU/Linux will be ignored (used to be very few though).
wget -nc -q "https://addons.mozilla.org/firefox/downloads/latest/$slug/addon-$id-latest.xpi" || wget -nc -q "https://addons.mozilla.org/firefox/downloads/latest/$slug/platform:2/addon-$id-latest.xpi"
- echo "foo" # Must be here to work with pv
+ if ! $debug; then echo "foo"; fi # for pv
done < "$output_file" | pv__progress
@@ -85,7 +85,7 @@ function get-add-ons--filter {
license_file_text=$(unzip -l "addon-$id-latest.xpi" | awk '{ print $4 }' | grep -E "^COPYING$|^COPYING.txt$|^COPYING.md$|^LICENSE$|^LICENSE.txt$|^LICENSE.md$" | sed ':a;N;$!ba;s/\n/\t/g' || echo "NOLICENSEFILEFOUND");
echo -e "$file\\t$entry\\t$slug\\taddon-$id-latest.xpi\\t$license_file_text" >> "$run_path/build/index-search-pages--free-licenses--license-file-status.txt"
- echo "foo" # Must be here to work with pv
+ if ! $debug; then echo "foo"; fi # for pv
done < "$output_file" | pv__progress