mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
chnage condition for shellcheck
This commit is contained in:
parent
7e7bdca674
commit
fcdeaf7eca
@ -164,7 +164,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run_shellcheck(files, output_type)
|
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")
|
||||||
shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"])
|
shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"])
|
||||||
shellcheck ||= begin
|
shellcheck ||= begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user