[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] [PATCH 3/3] font.eclass: Move while to primary shell
From: Andreas Sturmlechner <asturm () gentoo ! org>
Date: 2019-03-24 20:52:31
Message-ID: 2058431.cuIeolGEF7 () tuxk10
[Download RAW message or body]
---
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic