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
|
if which pyflakes-python2 >/dev/null 2>&1; then
|
||||||
PYFLAKES=pyflakes-python2
|
PYFLAKES=pyflakes-python2
|
||||||
fi
|
fi
|
||||||
|
if [ -z "${PYFLAKES}" ]
|
||||||
|
then
|
||||||
|
echo "pyflakes not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
# check for modern pyflakes
|
# check for modern pyflakes
|
||||||
if ${PYFLAKES} --version >/dev/null 2>&1; then
|
if ${PYFLAKES} --version >/dev/null 2>&1; then
|
||||||
exec ${PYFLAKES} $PYFILES
|
exec ${PYFLAKES} $PYFILES
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue