aboutsummaryrefslogtreecommitdiff
path: root/package/coreutils/coreutils.mk
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-30 15:18:27 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-12-01 23:29:03 +0100
commit5e7c3648724b1f77e03f5730b7371d2d42df54ed (patch)
tree52cd65117e606c0b2112c28edaf1fd202b450ada /package/coreutils/coreutils.mk
parent1b5f3b16f4b3280b014d171f3f5b81b6340c75df (diff)
downloadbuildroot-5e7c3648724b1f77e03f5730b7371d2d42df54ed.tar.gz
buildroot-5e7c3648724b1f77e03f5730b7371d2d42df54ed.tar.bz2
coreutils: 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>
Diffstat (limited to 'package/coreutils/coreutils.mk')
-rw-r--r--package/coreutils/coreutils.mk2
1 files changed, 1 insertions, 1 deletions
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/[