diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 51ac170287..50b3897507 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -22,8 +22,8 @@ class Keg mach_o_files.each do |file| file.ensure_writable do if file.dylib? - id = relocated_name_for(dylib_id_for(file), relocation) - change_dylib_id(id, file) if id + id = relocated_name_for(file.dylib_id, relocation) + change_dylib_id(id, file) end each_install_name_for(file) do |old_name|