Skip to content

Commit

Permalink
font.eclass: Move while to primary shell
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Oct 16, 2019
1 parent 678696c commit f943229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/font.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit f943229

Please sign in to comment.