chnage condition for shellcheck

This commit is contained in:
hyuraku 2021-09-07 20:47:48 +09:00
parent 7e7bdca674
commit fcdeaf7eca

View File

@ -164,7 +164,7 @@ module Homebrew
end
def run_shellcheck(files, output_type)
shellcheck = Formula["shellcheck"].opt_bin/"shellcheck" if Formula["shellcheck"].any_version_installed?
shellcheck = Formula["shellcheck"].opt_bin/"shellcheck" if Formula["shellcheck"].latest_version_installed?
shellcheck ||= which("shellcheck")
shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"])
shellcheck ||= begin