X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=test-sha1.sh;h=0f0bc5d02f4dcbd67c6d405350e5aaeb39f44bfb;hb=5fd898141ce2a243abf75192c9a55cb0a4e1ba80;hp=bf526c8f5e8649590da1bfd424e11a78c5621f6f;hpb=a41acc63badf20cbb22cca61039dca9309deaa19;p=thirdparty%2Fgit.git diff --git a/test-sha1.sh b/test-sha1.sh index bf526c8f5e..0f0bc5d02f 100755 --- a/test-sha1.sh +++ b/test-sha1.sh @@ -10,7 +10,7 @@ do { test -z "$pfx" || echo "$pfx" dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null | - tr '\000' 'g' + perl -pe 'y/\000/g/' } | ./test-sha1 $cnt ` if test "$expect" = "$actual" @@ -55,7 +55,7 @@ do { test -z "$pfx" || echo "$pfx" dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null | - tr '\000' 'g' + perl -pe 'y/\000/g/' } | sha1sum | sed -e 's/ .*//' `