fix script to grep -v only one message type (redefinition)
This commit is contained in:
parent
3b89982340
commit
28f622e071
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue