Skip to content

Commit 0f529da

Browse files
authored
Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison
Fix macOS version comparison
2 parents a35d0fe + 282c0a3 commit 0f529da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/os/mac/xcode.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def detect_version
256256
return MacOS::Xcode.version if MacOS::Xcode.installed? && Xcode::Version.new(MacOS::Xcode.version) < "3.0"
257257

258258
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
259-
if Xcode::Version.new(MacOS.version) >= :mavericks.to_s
259+
if MacOS.version >= :mavericks
260260
next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")
261261
end
262262
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]

0 commit comments

Comments
 (0)