gptfdisk: add error handling to for loop
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:31 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 22:31:18 +0000 (23:31 +0100)
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>
package/gptfdisk/gptfdisk.mk

index 897dc77ac6eb0ec9b1bee88c83a9fd74605b7b4c..0a73b63637b13c0e7796532a0ae5975e368a4f16 100644 (file)
@@ -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