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
commitaf9fa3534ef67693a26efefc07ea3e7f5e587e9d (patch)
treee829ce43daffc2a80a2bb865ff01b97b120407e3 /Library/Homebrew/utils.rb
parentc32315b566dec700950896c4fb1f22e68463bb56 (diff)
downloadhomebrew-af9fa3534ef67693a26efefc07ea3e7f5e587e9d.tar.bz2
Check even more carefully for xcode_version
Refs #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