From: Thomas Petazzoni Date: Sun, 30 Nov 2014 14:18:27 +0000 (+0100) Subject: coreutils: add error handling to for loop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e7c3648724b1f77e03f5730b7371d2d42df54ed;p=buildroot.git coreutils: 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/coreutils/coreutils.mk b/package/coreutils/coreutils.mk index db0d8a941f..8901d2337c 100644 --- a/package/coreutils/coreutils.mk +++ b/package/coreutils/coreutils.mk @@ -102,7 +102,7 @@ endif define COREUTILS_POST_INSTALL # some things go in root rather than usr for f in $(COREUTILS_BIN_PROGS); do \ - mv -f $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \ + mv -f $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f || exit 1; \ done # link for archaic shells ln -fs test $(TARGET_DIR)/usr/bin/[