From: Andreas Sturmlechner Date: Mon, 7 Oct 2019 06:28:04 +0000 (+0200) Subject: font.eclass: Move while to primary shell X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f943229b458f44a2d3e0733f3fd89c8ee59af160;p=gentoo.git font.eclass: Move while to primary shell Signed-off-by: Andreas Sturmlechner --- diff --git a/eclass/font.eclass b/eclass/font.eclass index f77f62291df8..701621002845 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 }