summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index f77f62291df8..701621002845 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
}