Skip to content
Snippets Groups Projects
Commit 7812b500 authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

linkage: avoid checking symlinks/directories

Prevent raising an error when `HOMEBREW_RUBY_MACHO=1` is set. Skipping
symlinks and directories while iterating over a directory structure to
find Mach-O binaries makes sense and similar logic is applied elsewhere.
parent af94c4fc
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ module Homebrew
def check_dylibs
@keg.find do |file|
next if file.symlink? || file.directory?
next unless file.dylib? || file.mach_o_executable? || file.mach_o_bundle?
file.dynamically_linked_libraries.each do |dylib|
if dylib.start_with? "@"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment