public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 3/3] font.eclass: Move while to primary shell
@ 2019-03-24 20:52 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2019-03-24 20:52 UTC (permalink / raw
  To: gentoo-dev

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

diff --git a/eclass/font.eclass b/eclass/font.eclass
index fef6b79..6488109 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -103,7 +103,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; do
 		candidate=false
 		otherfile=false
 		for f in "${d}"/*; do
@@ -138,7 +138,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
 }
 
-- 
2.21.0





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-24 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-24 20:52 [gentoo-dev] [PATCH 3/3] font.eclass: Move while to primary shell Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox