Skip to content
Snippets Groups Projects
Commit b82be5c8 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

brew-doctor - fix keg-only check

parent b6bd22bf
No related branches found
No related tags found
No related merge requests found
......@@ -524,8 +524,15 @@ def __check_linked_brew f
Pathname.new(f.prefix).find do |src|
dst=HOMEBREW_PREFIX+src.relative_path_from(f.prefix)
next unless dst.symlink?
links_found << dst unless src.directory?
Find.prune if src.directory?
dst_points_to = dst.realpath()
next unless dst_points_to.to_s == src.to_s
if src.directory?
Find.prune
else
links_found << dst
end
end
return links_found
......
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