diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 729bbf968c..56cfbf68ce 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -94,6 +94,7 @@ class Keg def each_linkage_for(file, linkage_type, &block) links = file.method(linkage_type) .call + .uniq .reject { |fn| fn =~ /^@(loader_|executable_|r)path/ } links.each(&block) end