Skip to content

Commit 872bb92

Browse files
gromgitMikeMcQuaid
andcommitted
Update Library/Homebrew/diagnostic.rb
Co-authored-by: Mike McQuaid <[email protected]>
1 parent 2d02c39 commit 872bb92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Library/Homebrew/diagnostic.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,14 @@ def __check_stray_files(dir, pattern, allow_list, message)
189189
(Dir.glob(pattern) - Dir.glob(allow_list))
190190
.select { |f| File.file?(f) && !File.symlink?(f) }
191191
.map do |f|
192-
f.sub!(%r{/.*}, "/...") unless @verbose
192+
f.sub!(%r{/.*}, "/*") unless @verbose
193193
File.join(dir, f)
194194
end
195+
.sort.uniq
195196
end
196197
return if files.empty?
197198

198-
inject_file_list(files.sort.uniq, message)
199+
inject_file_list(files, message)
199200
end
200201

201202
def check_for_stray_dylibs

0 commit comments

Comments
 (0)