style: don’t run shellcheck on specified ruby file.

This commit is contained in:
Mike McQuaid 2019-04-18 21:42:42 +09:00
parent 9e7b98d3e2
commit 892d0ac5fe
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -100,7 +100,7 @@ module Homebrew
raise "Invalid output_type for check_style_impl: #{output_type}" raise "Invalid output_type for check_style_impl: #{output_type}"
end end
return !rubocop_success if !files.nil? && !has_non_formula return !rubocop_success if files.present? || !has_non_formula
shellcheck = which("shellcheck") shellcheck = which("shellcheck")
shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"]) shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"])