diff options
author | Andrew J. Hesford <ajh@sideband.org> | 2020-06-17 00:00:09 +0000 |
---|---|---|
committer | Piotr <chocimier@tlen.pl> | 2020-06-18 07:38:18 +0000 |
commit | 4ef9cff1d306477149eb7ade10c0bc57d2eaf904 (patch) | |
tree | c2db04f4de1eb24d2d55042480c1966d038e697f | |
parent | 9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa (diff) | |
download | void-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.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 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} |