public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] [PATCH 3/3] font.eclass: Move while to primary shell
@ 2019-03-24 20:52 99% Andreas Sturmlechner
  0 siblings, 0 replies; 1+ results
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	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-03-24 20:52 99% [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