Skip to content

Commit 4c60e43

Browse files
committed
Win32: Suppress an error message when baseruby is not found
1 parent b246fb6 commit 4c60e43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

win32/Makefile.sub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ MFLAGS=-l
2323
# executable in $(tooldir).
2424
! if [cd $(tooldir) && ruby missing-baseruby.bat 2> nul]
2525
! else if [(cd $(tooldir) && for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I) > baseruby.mk]
26-
! else
26+
! else if exist(baseruby.mk)
2727
! include baseruby.mk
2828
! endif
29-
! if [del baseruby.mk]
29+
! if [del baseruby.mk 2> nul]
3030
! endif
3131
!else if "$(BASERUBY)" == "no" || [($(BASERUBY) -eexit) > nul 2> nul]
3232
BASERUBY =

0 commit comments

Comments
 (0)