aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src/unmaintained/make-collection-list~
blob: 2e6531058abbb53515e72f45b259e613a6a28dbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

cd build/ || exit
for i in $(cat ../FreeAMO-collections); do

    # https://addons.mozilla.org/en-US/firefox/collections/DavidHedlund/webextensions/format%3Ajson
    collection_name=$(echo $i | sed "s|https://addons.mozilla.org/en-US/firefox/collections/||; s|/|-|; s|/$||");
    wget $i"format%3Ajson" -O "collection-$collection_name.json"

done