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."