1 |
--- |
2 |
eclass/font.eclass | 4 ++-- |
3 |
1 file changed, 2 insertions(+), 2 deletions(-) |
4 |
|
5 |
diff --git a/eclass/font.eclass b/eclass/font.eclass |
6 |
index fef6b79..6488109 100644 |
7 |
--- a/eclass/font.eclass |
8 |
+++ b/eclass/font.eclass |
9 |
@@ -103,7 +103,7 @@ font_cleanup_dirs() { |
10 |
local d f g generated candidate otherfile |
11 |
|
12 |
ebegin "Cleaning up font directories" |
13 |
- find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0 | while read -d $'\0' d; do |
14 |
+ while read d; do |
15 |
candidate=false |
16 |
otherfile=false |
17 |
for f in "${d}"/*; do |
18 |
@@ -138,7 +138,7 @@ font_cleanup_dirs() { |
19 |
# if there's nothing left remove the directory |
20 |
find "${d}" -maxdepth 0 -type d -empty -delete || eerror "failed to purge ${d}" |
21 |
fi |
22 |
- done |
23 |
+ done < <(find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0) |
24 |
eend 0 |
25 |
} |
26 |
|
27 |
-- |
28 |
2.21.0 |