From 1357cd0bd98e7dd60d718d3f5e3b5aed881afdae Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 2 Apr 2016 08:31:29 -0400 Subject: [PATCH] updated script to pull all from uAssets --- tools/update-checksums.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/update-checksums.sh b/tools/update-checksums.sh index 99ab55b18..e1fe294aa 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."