scripts: switch shebang in linter
authorAlexey Ivanov <rbtz@dropbox.com>
Wed, 16 Jan 2019 17:52:07 +0000 (09:52 -0800)
committerAlexey Ivanov <rbtz@dropbox.com>
Wed, 16 Jan 2019 17:53:11 +0000 (09:53 -0800)
scripts/py-style-check.sh

index d8c5ece..78c8964 100755 (executable)
@@ -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"