aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2012-08-07 14:34:27 -0400
committerMax Howell2012-08-07 14:34:27 -0400
commitc84035a287719a1ca780c75abead4d64b72eef24 (patch)
treec9a039ad5ecfa8260c5a46f824a6daaf0c61947a /Library/Homebrew
parentadccbf893e3b305760b35704f919f067e5d29069 (diff)
downloadbrew-c84035a287719a1ca780c75abead4d64b72eef24.tar.bz2
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?
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/macos/xcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb
index 844926ede..0eda90e57 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