From b517210f27ab179ae1d7826eea665e413d50dd38 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 5 Jan 2010 12:11:27 -0500 Subject: [PATCH] test-sh: don't truncate stderr. Normally you wouldn't notice this problem, unless you tried to run: make test >&test.out and found that it was full of NUL characters. Oops. --- test-sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-sh b/test-sh index 35c2f48..0cb8682 100755 --- a/test-sh +++ b/test-sh @@ -35,7 +35,7 @@ diff -u testfile2 out2c.tmp git repack -Ad git prune (cd "$TOP/t/sampledata" && bup save -vvn master .) || exit 1 - n=$(git fsck --full --strict 2>&1 | tee /dev/stderr | wc -l) + n=$(git fsck --full --strict 2>&1 | tee -a /dev/stderr | wc -l) if [ "$n" != 0 ]; then echo "git fsck error." exit 5 -- 2.39.2