diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 1d0d14e7ed..3ec28136c0 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -218,7 +218,7 @@ class Keg < Pathname # it, and the exception that is generated will message to the user about # the situation if dst.symlink? and dst.directory? - src = (dst.parent+dst.readlink).cleanpath + src = dst.resolved_path keg = Keg.for(src) dst.unlink unless mode.dry_run keg.link_dir(src, mode) { :mkpath }