From eb2621ca460ab5f503c5c03a7ef9895a4bef58f1 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 22 Mar 2016 09:03:06 +0100 Subject: [PATCH] hooks/post-install/07-rewrite-python-shebang.sh: use IFS and -r for read. cc @chneukirchen --- common/hooks/post-install/07-rewrite-python-shebang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/07-rewrite-python-shebang.sh b/common/hooks/post-install/07-rewrite-python-shebang.sh index 06c94dddec..0443640954 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"