Author: tridge
Date: 2005-08-01 16:32:48 +0000 (Mon, 01 Aug 2005)
New Revision: 8885

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8885

Log:
fixed shell syntax


Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-08-01 16:12:21 UTC 
(rev 8884)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-08-01 16:32:48 UTC 
(rev 8885)
@@ -149,8 +149,8 @@
 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";

Reply via email to