From bd8cb9f5d268881a49819a1996d3dffdb951168e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Feb 2019 15:34:08 +0000 Subject: [PATCH] Parenthesize `for` to ignore errors git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index e1298db92c..6b51a6c51c 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -1192,7 +1192,7 @@ ext/clean.mk ext/distclean.mk ext/realclean.mk:: $(Q)if exist $(EXTS_MK) $(MAKE) -k -f $(EXTS_MK) top_srcdir=$(srcdir) $(*F) ext/clean gems/clean ext/distclean gems/distclean ext/realclean gems/realclean:: - $(Q)cd $(@D) && for /R $(EXTS) %I in (.) \ + $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (.) \ do $(Q)if exist %I\Makefile ( \ cd %I && ( \ call set n=%I && \ @@ -1202,11 +1202,11 @@ ext/clean gems/clean ext/distclean gems/distclean ext/realclean gems/realclean:: $(MAKE) $(MFLAGS) $(@F) & \ cd %CD% & \ $(RMDIRS) %I \ - ) ) || @ + ))) || @ ext/distclean gems/distclean ext/realclean gems/realclean:: - $(Q)cd $(@D) && for /R $(EXTS) %I in (exts.mk*) \ - do $(Q)(del %I & rmdir %~dpI) + $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (exts.mk*) \ + do $(Q)(del %I & rmdir %~dpI)) || @ -$(Q)rmdir $(@D) 2> nul || @ clean-enc distclean-enc realclean-enc: