style: reject *.sh directories.
Otherwise silly things happen like thinking formulae.brew.sh directories are files.
This commit is contained in:
parent
754c026dd4
commit
dcc5659a70
@ -62,7 +62,7 @@ module Homebrew
|
|||||||
shell_scripts
|
shell_scripts
|
||||||
else
|
else
|
||||||
path.glob("**/*.sh")
|
path.glob("**/*.sh")
|
||||||
.reject { |path| path.to_s.include?("/vendor/") }
|
.reject { |path| path.to_s.include?("/vendor/") || path.directory? }
|
||||||
end
|
end
|
||||||
actionlint_files += (path/".github/workflows").glob("*.y{,a}ml")
|
actionlint_files += (path/".github/workflows").glob("*.y{,a}ml")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user