diff options
Diffstat (limited to 'common/hooks/pre-pkg/03-rewrite-python-shebang.sh')
-rw-r--r-- | common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index 07162ad2c69..47c7a996a50 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -12,6 +12,10 @@ hook() { pyver="$python_version" fi + if [ "$python_version" = ignore ]; then + return + fi + if [ -n "$pyver" ]; then default_shebang="#!/usr/bin/python${pyver%.*}" fi |