audit (strict): only run brew style with Ruby 2.

This commit is contained in:
Mike McQuaid 2015-01-05 07:52:47 +00:00
parent e871a91958
commit 980cad0717

View File

@ -9,7 +9,7 @@ module Homebrew
problem_count = 0
strict = ARGV.include? "--strict"
if strict && ARGV.formulae.any?
if strict && ARGV.formulae.any? && MacOS.version >= :mavericks
require "cmd/style"
ohai "brew style #{ARGV.formulae.join " "}"
style