Prevent pyflakes from being called if not found
This commit is contained in:
parent
9f2961c9a3
commit
b32540e445
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ else
|
|||
if which pyflakes-python2 >/dev/null 2>&1; then
|
||||
PYFLAKES=pyflakes-python2
|
||||
fi
|
||||
if [ -z "${PYFLAKES}" ]
|
||||
then
|
||||
echo "pyflakes not found"
|
||||
exit 1
|
||||
fi
|
||||
# check for modern pyflakes
|
||||
if ${PYFLAKES} --version >/dev/null 2>&1; then
|
||||
exec ${PYFLAKES} $PYFILES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue