From 2d5e38b495776e5bb2266848a3365667f3ca7233 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 29 Apr 2013 22:06:40 -0700 Subject: [PATCH] bin/misc-functions.sh: use pipe for find ${D}${D} --- bin/misc-functions.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.26.2