From 457261e2a2e2a1a5d9c245170713e37784497ab5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Aug 2005 16:32:48 +0000 Subject: r8885: fixed shell syntax (This used to be commit 00ea1f38a36a0e45219a941a38875787bf526661) --- source4/script/tests/selftest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index 17e991cc72..b102bf20fe 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -149,8 +149,8 @@ echo "START: $START ($0)"; echo "END: $END ($0)"; # if there were any valgrind failures, show them -list=`find $PREFIX -name 'valgrind.log*'` -if [ x$list != x ]; then +count=`find $PREFIX -name 'valgrind.log*' | wc -l` +if [ "$count" != 0 ]; then for f in $PREFIX/valgrind.log*; do if [ -s $f ]; then echo "VALGRIND FAILURE"; -- cgit