aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMax Howell2011-09-05 18:54:07 +0100
committerMax Howell2011-09-05 18:54:07 +0100
commit6d075a3b17e761d77e35d2a68dd4bb3d6a067776 (patch)
tree35efc58cf80047c7b31c81a99c4030d1488ce346 /Library/Homebrew/utils.rb
parent9cdfd2797fb547473d460c7b4a0f88a6a7d174b5 (diff)
downloadbrew-6d075a3b17e761d77e35d2a68dd4bb3d6a067776.tar.bz2
Check even more carefully for xcode_version
Refs Homebrew/homebrew#7236, though honestly I just think @dsarch hasn't updated.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 4fb84d8f4..cc146222b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -299,6 +299,7 @@ module MacOS extend self
@xcode_version ||= begin
raise unless system "/usr/bin/which -s xcodebuild"
`xcodebuild -version 2>&1` =~ /Xcode (\d(\.\d)*)/
+ raise if $1.nil?
$1
rescue
# for people who don't have xcodebuild installed due to using