aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos/xcode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/macos/xcode.rb')
-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