Skip to content
Snippets Groups Projects
Commit 282c0a30 authored by Sorin Ionescu's avatar Sorin Ionescu
Browse files

Fix macOS version comparison

parent d4f8e2fa
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@ module OS
return MacOS::Xcode.version if MacOS::Xcode.installed? && Xcode::Version.new(MacOS::Xcode.version) < "3.0"
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
if Xcode::Version.new(MacOS.version) >= :mavericks.to_s
if MacOS.version >= :mavericks
next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")
end
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment