diff --git a/tox.ini b/tox.ini index 9c305d61a..c9465a415 100644 --- a/tox.ini +++ b/tox.ini @@ -33,11 +33,11 @@ commands = # E040: Syntax error determined using `bash -n` (as many scripts # use jinja templating, this will often fail and the syntax # error will be discovered in execution anyway) - bash -c "grep --recursive --binary-files=without-match \ + bash -c "git ls-files | xargs grep --binary-files=without-match \ --files-with-match '^.!.*\(ba\)\?sh$' \ --exclude-dir .tox \ --exclude-dir .git \ - {toxinidir} | xargs bashate --error . --verbose --ignore=E006,E040" + | xargs bashate --error . --verbose --ignore=E006,E040" [testenv:pep8] commands =