From 4ef9cff1d306477149eb7ade10c0bc57d2eaf904 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 16 Jun 2020 20:00:09 -0400 Subject: [PATCH] xbps-src: consume all shebang arguments during rewrite --- common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index 99e1205f142..22f506155a0 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -20,7 +20,7 @@ hook() { while IFS= read -r -d '' file; do [ ! -s "$file" ] && continue - pyinterp=$(sed -n -E -e 2q -e 's@^#!.*([[:space:]]|/)(python([0-9](\.[0-9]+)?)?)([[:space:]]+|$)@\2@p' "$file") + pyinterp=$(sed -n -E -e 2q -e 's@^#!.*([[:space:]]|/)(python([0-9](\.[0-9]+)?)?)([[:space:]]+.*|$)@\2@p' "$file") [ -z "$pyinterp" ] && continue pyver=${pyinterp#python}