[Buildroot] [PATCHv3 39/74] coreutils: add error handling to for loop

Peter Korsgaard peter at korsgaard.com
Mon Dec 1 22:29:44 UTC 2014


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > 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; \

This no longer cleanly applied after the -f option was added on the
18th. I've fixed that up and committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list