Merge pull request #11939 from hyuraku/add_shellcheck-disable

require latest shellcheck version
This commit is contained in:
Mike McQuaid 2021-09-07 13:04:18 +01:00 committed by GitHub
commit b253b304d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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