diff options
| author | Misty De Meo | 2015-08-21 11:04:22 -0700 |
|---|---|---|
| committer | Misty De Meo | 2015-08-21 11:04:22 -0700 |
| commit | 727239e12f98fafad39aa4f70b37c6d5bf4db1cc (patch) | |
| tree | 6019e597c18c9ea366e7e45be0a3e6fc19335ae1 /Library/Homebrew/os/mac/xcode.rb | |
| parent | 1da2855c0b1d884d18944307bdbbe2b64c4dd47d (diff) | |
| parent | 04a0b2aafe2062701be4028f408d0bee15f3815d (diff) | |
| download | brew-727239e12f98fafad39aa4f70b37c6d5bf4db1cc.tar.bz2 | |
Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 9b111e4e6..a79814d0d 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -76,6 +76,8 @@ module OS return "0" unless OS.mac? + return nil if !MacOS::Xcode.installed? && !MacOS::CLT.installed? + %W[#{prefix}/usr/bin/xcodebuild #{which("xcodebuild")}].uniq.each do |path| if File.file? path Utils.popen_read(path, "-version") =~ /Xcode (\d(\.\d)*)/ |
