aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-07 14:34:27 -0400
committerMax Howell2012-08-07 14:34:27 -0400
commitd184e3e340ca18ad84f4ac1ad8538325ef31899d (patch)
tree009a60bd92858ce1d95987f1a26efb19b9e8ad85 /Library
parentea9c52bbe4138c889a2adc5c28bb1b9ace362526 (diff)
downloadhomebrew-d184e3e340ca18ad84f4ac1ad8538325ef31899d.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')
-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