aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2012-09-24 08:40:19 -0400
committerMax Howell2012-09-24 08:49:58 -0400
commit82c58bb615420390bd49e6bf476d3000890b889c (patch)
tree06415c77bcd152458674d8cf04943b055c87edf4 /Library/Homebrew/cmd
parentbcf0d6f2450cdea84a32f9a844307804f542fc21 (diff)
downloadbrew-82c58bb615420390bd49e6bf476d3000890b889c.tar.bz2
Fix doctor hanging if xcode-select is bad
Also fix typo in the superenv DEVELOPER_DIR set detection code.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index f703dd1be..7952d106a 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -942,6 +942,7 @@ def check_os_version
end
def check_xcode_license_approved
+ return if MacOS::Xcode.bad_xcode_select_path?
# If the user installs Xcode-only, they have to approve the
# license or no "xc*" tool will work.
<<-EOS.undent if `/usr/bin/xcrun clang 2>&1` =~ /license/ and not $?.success?