summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/ttf-fonts/ttf.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc
index 98bd5b820d..e2be378194 100644
--- a/packages/ttf-fonts/ttf.inc
+++ b/packages/ttf-fonts/ttf.inc
@@ -4,12 +4,10 @@ RRECOMMENDS += "font-update-common"
do_install() {
install -d ${D}${datadir}/fonts/truetype/
- if [ -e *.ttf ]; then
- install -m 0644 *.ttf ${D}${datadir}/fonts/truetype/
- fi
- if [ -e *.ttc ]; then
- install -m 0644 *.ttc ${D}${datadir}/fonts/truetype/
- fi
+ for f in *.ttf *.ttc
+ do
+ [ -f $f ] && install -m 0644 $f ${D}${datadir}/fonts/truetype/
+ done
}
pkg_postinst_append() {