googlefontdirectory: add error handling to for loop

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Thomas Petazzoni 2014-11-30 15:18:30 +01:00 committed by Peter Korsgaard
parent 3bd3cbf90c
commit a0cefa916b
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ define GOOGLEFONTDIRECTORY_INSTALL_TARGET_CMDS
for i in $(GOOGLEFONTDIRECTORY_FONTS); \
do \
$(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/$$i && \
$(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$$i $(@D)/$$i/*.ttf; \
$(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$$i $(@D)/$$i/*.ttf || exit 1; \
done
endef