Deal with spaces, especially OSX loves them
authorFabian Groffen <grobian@gentoo.org>
Wed, 16 Sep 2009 19:04:34 +0000 (19:04 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 16 Sep 2009 19:04:34 +0000 (19:04 -0000)
svn path=/main/branches/prefix/; revision=14278

bin/misc-functions.sh

index 675a6c577766b58a2806fb1dd693fac3b9d003ca..3d9f1b49d524bdc3eafe8f281791018d9f445bf0 100644 (file)
@@ -483,8 +483,8 @@ install_qa_check() {
                rm -f "${T}"/non-prefix-shebangs-errs
                local WHITELIST=" /usr/bin/env "
                # this is hell expensive, but how else?
-               find "${ED}" -type f -executable \
-                               | xargs grep -H -n -m1 "^#!" \
+               find "${ED}" -type f -executable -print0 \
+                               | xargs -0 grep -H -n -m1 "^#!" \
                                | while read f ;
                do
                        fn=${f%%:*}