From c84035a287719a1ca780c75abead4d64b72eef24 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 7 Aug 2012 14:34:27 -0400 Subject: [PATCH] Fix Xcode.version I managed to remove a return while fixing this yesterday. The whitespace changes made the diff unreadable so I missed this regression. Why does this sort of thing still happen? --- Library/Homebrew/macos/xcode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb index 844926ede2..0eda90e578 100644 --- a/Library/Homebrew/macos/xcode.rb +++ b/Library/Homebrew/macos/xcode.rb @@ -70,7 +70,7 @@ module MacOS::Xcode extend self xcode43build = V4_BUNDLE_PATH/'Contents/Developer/usr/bin/xcodebuild' if xcode43build.file? `#{xcode43build} -version 2>/dev/null` =~ /Xcode (\d(\.\d)*)/ - $1 if $1 + return $1 if $1 end # Xcode 4.3 xc* tools hang indefinately if xcode-select path is set thus