From ad02ea74da758f5063b219a4a35df9431c4d8732 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 17 Aug 2012 18:00:14 -0400 Subject: [PATCH] Fix syntax error, sorry about that. Didn't test properly, it was a side-fix. Bad mxcl. --- Library/Homebrew/macos/xcode.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb index 28d3aff669..69f6af894d 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