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:
parent
1b5f3b16f4
commit
5e7c364872
@ -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/[
|
||||
|
Loading…
Reference in New Issue
Block a user