diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index a9a9672f98..0c0555f0e7 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -37,10 +37,8 @@ class Pathname def install_p(src, new_basename) raise Errno::ENOENT, src.to_s unless File.symlink?(src) || File.exist?(src) - dst = join(new_basename) - src = src.to_s - dst = dst.to_s + dst = join(new_basename).to_s dst = yield(src, dst) if block_given? return unless dst