diff options
-rw-r--r-- | common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index 22f506155a0..60e7f61975b 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -16,7 +16,7 @@ hook() { default_shebang="#!/usr/bin/python${pyver%.*}" fi - find "${PKGDESTDIR}" -type f -print0 | \ + grep -rlIZ -m1 '^#!.*python' "${PKGDESTDIR}" | while IFS= read -r -d '' file; do [ ! -s "$file" ] && continue |