aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2016-11-12 11:31:27 +0000
committerMike McQuaid2016-11-12 11:32:27 +0000
commit215105a48410176bdd5ee0fc56a93b36bd06fa1b (patch)
tree14034d141008f213289f3029183c5389b0ec654e /Library/Homebrew/extend
parentc4519b030ec2c689cdd2a760a8d4f18926c7bed1 (diff)
downloadbrew-215105a48410176bdd5ee0fc56a93b36bd06fa1b.tar.bz2
diagnostic: skip xcode-select check with no Xcode.
Skip the `xcode-select` configuration check if there's no CLT or Xcode installed as in that case neither will be used. Fixes #1055.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 9c106acf1..db054ea4c 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -233,6 +233,7 @@ module Homebrew
def check_xcode_select_path
return if MacOS::CLT.installed?
+ return unless MacOS::Xcode.installed?
return if File.file?("#{MacOS.active_developer_dir}/usr/bin/xcodebuild")
path = MacOS::Xcode.bundle_path