From: Thomas Petazzoni Date: Sun, 30 Nov 2014 14:18:31 +0000 (+0100) Subject: gptfdisk: add error handling to for loop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2d1301a04c0f181d434d8329c959505d8f49ed5;p=buildroot.git gptfdisk: add error handling to for loop Signed-off-by: Thomas Petazzoni Acked-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/package/gptfdisk/gptfdisk.mk b/package/gptfdisk/gptfdisk.mk index 897dc77ac6..0a73b63637 100644 --- a/package/gptfdisk/gptfdisk.mk +++ b/package/gptfdisk/gptfdisk.mk @@ -37,7 +37,7 @@ endef define GPTFDISK_INSTALL_TARGET_CMDS for i in $(GPTFDISK_TARGETS_y); do \ - $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i; \ + $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \ done endef