commit:     f943229b458f44a2d3e0733f3fd89c8ee59af160
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  7 06:28:04 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Oct 16 08:44:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f943229b

font.eclass: Move while to primary shell

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/font.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/font.eclass b/eclass/font.eclass
index f77f62291df..70162100284 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -106,7 +106,7 @@ font_cleanup_dirs() {
        local d f g generated candidate otherfile
 
        ebegin "Cleaning up font directories"
-       find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0 | while read -d 
$'\0' d; do
+       while read -d $'\0' -r; do
                candidate=false
                otherfile=false
                for f in "${d}"/*; do
@@ -141,7 +141,7 @@ font_cleanup_dirs() {
                        # if there's nothing left remove the directory
                        find "${d}" -maxdepth 0 -type d -empty -delete || 
eerror "failed to purge ${d}"
                fi
-       done
+       done < <(find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0)
        eend 0
 }
 

Reply via email to