diff options
author | Enno Boland <gottox@voidlinux.eu> | 2016-03-22 08:03:06 +0000 |
---|---|---|
committer | Enno Boland <gottox@voidlinux.eu> | 2016-03-22 08:03:11 +0000 |
commit | eb2621ca460ab5f503c5c03a7ef9895a4bef58f1 (patch) | |
tree | f725138fd60741135e8b1d4c644b36897dcc3a90 /common/hooks/post-install | |
parent | 830ca266448dd9436cb3b8e16da46f8b255c7c47 (diff) | |
download | void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar.gz void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar.bz2 void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar.lz void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar.xz void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.tar.zst void-packages-eb2621ca460ab5f503c5c03a7ef9895a4bef58f1.zip |
hooks/post-install/07-rewrite-python-shebang.sh: use IFS and -r for read.
cc @chneukirchen
Diffstat (limited to 'common/hooks/post-install')
-rw-r--r-- | common/hooks/post-install/07-rewrite-python-shebang.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hooks/post-install/07-rewrite-python-shebang.sh b/common/hooks/post-install/07-rewrite-python-shebang.sh index 06c94dddecb..04436409546 100644 --- a/common/hooks/post-install/07-rewrite-python-shebang.sh +++ b/common/hooks/post-install/07-rewrite-python-shebang.sh @@ -15,7 +15,7 @@ hook() { : ${pyver:=2.7} shebang="#!/usr/bin/python$pyver" 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 msg_warn "$pkgname: multiple python versions defined!" msg_warn "$pkgname: using $pyver for shebang" |