Skip to content
Snippets Groups Projects
Commit e2b21b0b authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Fix brew doctor when no Xcode is detected.

parent 5b06a27e
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,13 @@ def check_gcc_versions
EOS
end
if MacOS.xcode_version < "4.0"
if MacOS.xcode_version == nil
puts <<-EOS.undent
We couldn't detect any version of Xcode.
If you downloaded Xcode 4.1 from the App Store, you may need to run the installer.
EOS
elsif MacOS.xcode_version < "4.0"
if gcc_40 == nil
puts <<-EOS.undent
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
......
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