From 22b0abbfb8b7a8c741ffd7ff0f7153aa52624379 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 25 Nov 2015 09:26:14 +0000 Subject: audit: only run brew style when on Ruby 2.0. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4c416312c..506a6b190 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -14,7 +14,7 @@ module Homebrew problem_count = 0 strict = ARGV.include? "--strict" - if strict && ARGV.resolved_formulae.any? && MacOS.version >= :mavericks + if strict && ARGV.resolved_formulae.any? && RUBY_VERSION.split(".").first.to_i >= 2 require "cmd/style" ohai "brew style #{ARGV.resolved_formulae.join " "}" style -- cgit v1.2.3