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>
This commit is contained in:
Thomas Petazzoni 2014-11-30 15:18:27 +01:00 committed by Peter Korsgaard
parent 1b5f3b16f4
commit 5e7c364872
1 changed files with 1 additions and 1 deletions

View File

@ -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/[