summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2016-04-02 08:31:29 -0400
committergorhill <rhill@raymondhill.net>2016-04-02 08:31:29 -0400
commit1357cd0bd98e7dd60d718d3f5e3b5aed881afdae (patch)
treec55211602e708b77db851c9dc72ee4f3d2fc884f /tools
parentde1ed89f62bf041416d2a721ec00741667bf3fa8 (diff)
updated script to pull all from uAssets
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-checksums.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/update-checksums.sh b/tools/update-checksums.sh
index 99ab55b1..e1fe294a 100755
--- a/tools/update-checksums.sh
+++ b/tools/update-checksums.sh
@@ -17,7 +17,8 @@ filters=(
'../uAssets/filters/unbreak.txt'
)
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
thirdparties=(
@@ -29,7 +30,8 @@ thirdparties=(
'../uAssets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt'
)
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
echo "*** uBlock: checksums updated."