1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 08:37:11 +02:00

updated script to pull all from uAssets

This commit is contained in:
gorhill 2016-04-02 08:31:29 -04:00
parent de1ed89f62
commit 1357cd0bd9

View File

@ -17,7 +17,8 @@ filters=(
'../uAssets/filters/unbreak.txt' '../uAssets/filters/unbreak.txt'
) )
for repoPath in "${filters[@]}"; do for repoPath in "${filters[@]}"; do
echo `md5sum $repoPath` | sed 's/\.\.\/uAssets\/filters/assets\/ublock/' >> assets/checksums.txt localPath=`printf $repoPath | sed 's/\.\.\/uAssets\/filters/assets\/ublock/'`
echo `md5sum $localPath` >> assets/checksums.txt
done done
thirdparties=( thirdparties=(
@ -29,7 +30,8 @@ thirdparties=(
'../uAssets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt' '../uAssets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt'
) )
for repoPath in "${thirdparties[@]}"; do for repoPath in "${thirdparties[@]}"; do
echo `md5sum $repoPath` | sed 's/\.\.\/uAssets\/thirdparties/assets\/thirdparties/' >> assets/checksums.txt localPath=`printf $repoPath | sed 's/\.\.\/uAssets\/thirdparties/assets\/thirdparties/'`
echo `md5sum $localPath` >> assets/checksums.txt
done done
echo "*** uBlock: checksums updated." echo "*** uBlock: checksums updated."