style: reject *.sh directories.

Otherwise silly things happen like thinking formulae.brew.sh directories
are files.
This commit is contained in:
Mike McQuaid 2024-06-14 16:08:49 +01:00
parent 754c026dd4
commit dcc5659a70
No known key found for this signature in database

View File

@ -62,7 +62,7 @@ module Homebrew
shell_scripts
else
path.glob("**/*.sh")
.reject { |path| path.to_s.include?("/vendor/") }
.reject { |path| path.to_s.include?("/vendor/") || path.directory? }
end
actionlint_files += (path/".github/workflows").glob("*.y{,a}ml")
end