Skip to content
Snippets Groups Projects
Commit 7166289a authored by Mike McQuaid's avatar Mike McQuaid
Browse files

os/mac/xcode: revert an installed? guard removal.

Fixes #4084.
parent 7b6fb394
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,9 @@ module OS
def detect_version
# CLT isn't a distinct entity pre-4.3, and pkgutil doesn't exist
# at all on Tiger, so just count it as installed if Xcode is installed
return MacOS::Xcode.version if MacOS::Xcode.version < "3.0"
if MacOS::Xcode.installed? && MacOS::Xcode.version < "3.0"
return MacOS::Xcode.version
end
version = nil
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].each do |id|
......
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