From 6d075a3b17e761d77e35d2a68dd4bb3d6a067776 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 5 Sep 2011 18:54:07 +0100 Subject: [PATCH] Check even more carefully for xcode_version Refs Homebrew/homebrew#7236, though honestly I just think @dsarch hasn't updated. --- Library/Homebrew/utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 4fb84d8f47..cc146222b9 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