aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-17 18:00:14 -0400
committerMax Howell2012-08-17 18:00:33 -0400
commitb681f1f8eded04ab85978fbea42969bf61ced71e (patch)
treec53a2e69c3abe9b84420d74e6af719cd7f2a6413
parent547ca0a8d112db9db40dc567ae025b0528f9a0ab (diff)
downloadhomebrew-b681f1f8eded04ab85978fbea42969bf61ced71e.tar.bz2
Fix syntax error, sorry about that.
Didn't test properly, it was a side-fix. Bad mxcl.
-rw-r--r--Library/Homebrew/macos/xcode.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb
index 28d3aff66..69f6af894 100644
--- a/Library/Homebrew/macos/xcode.rb
+++ b/Library/Homebrew/macos/xcode.rb
@@ -158,8 +158,8 @@ module MacOS::CLT extend self
end
def latest_version?
- `/usr/bin/clang -v` =~ %r{tags/Apple/clang-(\d+).(\d+).(\d+)}
- $1 >= 421 and $3 >= 57
+ `/usr/bin/clang -v 2>&1` =~ %r{tags/Apple/clang-(\d+)\.(\d+)\.(\d+)}
+ $1.to_i >= 421 and $3.to_i >= 57
end
def version