hooks/post-install/07-rewrite-python-shebang.sh: use IFS and -r for read.
cc @chneukirchen
This commit is contained in:
parent
830ca26644
commit
eb2621ca46
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ hook() {
|
||||||
: ${pyver:=2.7}
|
: ${pyver:=2.7}
|
||||||
shebang="#!/usr/bin/python$pyver"
|
shebang="#!/usr/bin/python$pyver"
|
||||||
find ${PKGDESTDIR} -type f -print0 | \
|
find ${PKGDESTDIR} -type f -print0 | \
|
||||||
xargs -0 grep -l -m 1 "^#!.*\([[:space:]]\|/\)python\([[:space:]]\|$\)" -- | while read f; do
|
xargs -0 grep -l -m 1 "^#!.*\([[:space:]]\|/\)python\([[:space:]]\|$\)" -- | while IFS= read -r f; do
|
||||||
if [ "$warn" ]; then
|
if [ "$warn" ]; then
|
||||||
msg_warn "$pkgname: multiple python versions defined!"
|
msg_warn "$pkgname: multiple python versions defined!"
|
||||||
msg_warn "$pkgname: using $pyver for shebang"
|
msg_warn "$pkgname: using $pyver for shebang"
|
||||||
|
|
Loading…
Reference in a new issue