From bc2ce3636d31c895011a22c95160f5418fe1025d Mon Sep 17 00:00:00 2001 From: cmburn <33696630+cmburn@users.noreply.github.com> Date: Wed, 23 Jul 2025 14:09:02 -0500 Subject: [PATCH] Fix MSYS2 detection --- lib/ruby_installer/build/msys2_installation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_installer/build/msys2_installation.rb b/lib/ruby_installer/build/msys2_installation.rb index 0bc75843..bc4efedd 100644 --- a/lib/ruby_installer/build/msys2_installation.rb +++ b/lib/ruby_installer/build/msys2_installation.rb @@ -77,7 +77,7 @@ def iterate_msys_paths reg.each_key do |subkey| subreg = reg.open(subkey) begin - if subreg['DisplayName'] =~ /^MSYS2 / && File.directory?(il=subreg['InstallLocation']) + if subreg['DisplayName'] =~ /^MSYS2/ && File.directory?(il=subreg['InstallLocation']) yield il end rescue Encoding::InvalidByteSequenceError, Win32::Registry::Error