From fcdeaf7eca71ec5fe1d6c83cc65992cdfe23372f Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:47:48 +0900 Subject: [PATCH] chnage condition for shellcheck --- Library/Homebrew/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index c802ad087c..e38b194118 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -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