audit: only run brew style when on Ruby 2.0.

This commit is contained in:
Mike McQuaid 2015-11-25 09:26:14 +00:00
parent 060f0e3d6e
commit 22b0abbfb8

View File

@ -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