From a01d641b2a480b76c885dcb61a97ca5408704008 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 25 Oct 2012 14:52:36 -0400 Subject: [PATCH] check-all: Look for any shebang containing 'python' Such as #!/usr/bin/env python (imported from commit bc3ebdb3bafc9a6256a32c435a52717559bce82b) --- tools/check-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-all b/tools/check-all index 5972c2d13c..47c8509cda 100755 --- a/tools/check-all +++ b/tools/check-all @@ -16,7 +16,7 @@ cd "$SCRIPT_DIR"/..; PYTHON_FILES="" for file in $(git ls-files); do - if ([ -f "$file" ] && (head -n1 "$file" | grep -q "^#!/usr/bin/python" || + if ([ -f "$file" ] && (head -n1 "$file" | grep -q "^#!.*python" || echo "$file" | grep -q [.]py$) && \ echo "$file" | egrep -vq '^(confirmation/|humbug/test_settings\.py)'); then PYTHON_FILES="$PYTHON_FILES $file"