From f943229b458f44a2d3e0733f3fd89c8ee59af160 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 7 Oct 2019 08:28:04 +0200 Subject: [PATCH] font.eclass: Move while to primary shell Signed-off-by: Andreas Sturmlechner --- eclass/font.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/font.eclass b/eclass/font.eclass index f77f62291df82..7016210028456 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 }