check_non_libraries: fix false positive subdirectory reports
This commit is contained in:
parent
744e7dd190
commit
2bca6fb338
@ -62,7 +62,7 @@ module FormulaCellarChecks
|
||||
valid_extensions = %w[.a .dylib .framework .jnilib .la .o .so
|
||||
.jar .prl .pm .sh]
|
||||
non_libraries = formula.lib.children.reject do |g|
|
||||
next if g.directory?
|
||||
next true if g.directory?
|
||||
valid_extensions.include? g.extname
|
||||
end
|
||||
return if non_libraries.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user