From 28f622e0717f5bee43e8f4e96f099559acd206e2 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 13 Aug 2010 22:22:42 +0200 Subject: [PATCH] fix script to grep -v only one message type (redefinition) --- tools/pyflakes.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index c28b1012..5f5a053b 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -2,4 +2,7 @@ if [ `basename $PWD` == 'tools' ]; then cd .. fi -pyflakes weboob scripts/* | grep -v __init__.py + +# grep will return 0 only if it founds something, but our script +# wants to return 0 when it founds nothing! +pyflakes weboob scripts/* | grep -v redefinition && exit 1 || exit 0