[Buildroot] [PATCHv3 39/74] coreutils: add error handling to for loop
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Nov 30 14:18:27 UTC 2014
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/coreutils/coreutils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 391d2cd..fa2db04 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -101,7 +101,7 @@ endif
define COREUTILS_POST_INSTALL
# some things go in root rather than usr
for f in $(COREUTILS_BIN_PROGS); do \
- mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
+ mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f || exit 1; \
done
# link for archaic shells
ln -fs test $(TARGET_DIR)/usr/bin/[
--
2.1.0
More information about the buildroot
mailing list