fix script to grep -v only one message type (redefinition)

This commit is contained in:
Romain Bignon 2010-08-13 22:22:42 +02:00
commit 28f622e071

View file

@ -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