diff --git a/lib/xcode/install.rb b/lib/xcode/install.rb index 5b142577..49a064b9 100644 --- a/lib/xcode/install.rb +++ b/lib/xcode/install.rb @@ -373,7 +373,7 @@ def get_dmg(version, progress = true, url = nil, progress_block = nil) end if ENV.key?('XCODE_INSTALL_CACHE_DIR') Pathname.glob(ENV['XCODE_INSTALL_CACHE_DIR'] + '/*').each do |fpath| - return fpath if /^xcode_#{version}\.dmg|xip$/ =~ fpath.basename.to_s + return fpath if /^xcode_#{version}\.dmg|xip$/ =~ fpath.basename.to_s.downcase end end