Skip to content

Commit

Permalink
scripts: switch shebang in linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Jan 16, 2019
1 parent cc01a9c commit 3664191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/py-style-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -euo pipefail
find tools -type f -name "*.py" | xargs pep8 -r --show-source --ignore=E123,E125,E126,E127,E128,E302 || \
echo "pep8 run failed, please fix it" >&2

NO_PROPER_SHEBANG="$(find tools examples -type f -executable -name '*.py' | xargs grep -L '#!/usr/bin/env python')"
NO_PROPER_SHEBANG="$(find tools examples -type f -executable -name '*.py' | xargs grep -L '#!/usr/bin/python')"
if [ -n "$NO_PROPER_SHEBANG" ]; then
echo "bad shebangs found:"
echo "$NO_PROPER_SHEBANG"
Expand Down

0 comments on commit 3664191

Please sign in to comment.