aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew J. Hesford <ajh@sideband.org>2020-06-17 00:00:09 +0000
committerPiotr <chocimier@tlen.pl>2020-06-18 07:38:18 +0000
commit4ef9cff1d306477149eb7ade10c0bc57d2eaf904 (patch)
treec2db04f4de1eb24d2d55042480c1966d038e697f
parent9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa (diff)
downloadvoid-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar.gz
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar.bz2
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar.lz
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar.xz
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.tar.zst
void-packages-4ef9cff1d306477149eb7ade10c0bc57d2eaf904.zip
xbps-src: consume all shebang arguments during rewrite
-rw-r--r--common/hooks/pre-pkg/03-rewrite-python-shebang.sh2
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 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}