diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-10-07 08:28:04 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-10-16 10:44:26 +0200 |
commit | f943229b458f44a2d3e0733f3fd89c8ee59af160 (patch) | |
tree | 00e747f41fafc3d4ab7663202a952c7b2424d999 /eclass | |
parent | font.eclass: Add error handling where applicable (diff) | |
download | gentoo-f943229b458f44a2d3e0733f3fd89c8ee59af160.tar.gz gentoo-f943229b458f44a2d3e0733f3fd89c8ee59af160.tar.bz2 gentoo-f943229b458f44a2d3e0733f3fd89c8ee59af160.zip |
font.eclass: Move while to primary shell
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/font.eclass | 4 |
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 } |