From 980cad0717e8a22805bd3a1ac4e7860e4103c47d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 5 Jan 2015 07:52:47 +0000 Subject: [PATCH] audit (strict): only run `brew style` with Ruby 2. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 53a8322303..3ca4a140d0 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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