From: Zac Medico Date: Tue, 30 Apr 2013 05:06:40 +0000 (-0700) Subject: bin/misc-functions.sh: use pipe for find ${D}${D} X-Git-Tag: v2.2.0_alpha174~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d5e38b495776e5bb2266848a3365667f3ca7233;p=portage.git bin/misc-functions.sh: use pipe for find ${D}${D} --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 17dea4e98..725ba55dc 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -537,13 +537,12 @@ install_qa_check() { fi if [[ -d ${D%/}${D} ]] ; then - declare -i INSTALLTOD=0 - for i in $(find "${D%/}${D}"); do + local -i INSTALLTOD=0 + while read -r -d $'\0' i ; do eqawarn "QA Notice: /${i##${D%/}${D}} installed in \${D}/\${D}" ((INSTALLTOD++)) - done + done < <(find "${D%/}${D}" -print0) die "Aborting due to QA concerns: ${INSTALLTOD} files installed in ${D%/}${D}" - unset INSTALLTOD fi # Sanity check syntax errors in init.d scripts