audit: only run brew style when on Ruby 2.0.
This commit is contained in:
parent
060f0e3d6e
commit
22b0abbfb8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user