unpack: don't call realpath on potentially non-existent directory

This commit is contained in:
Jack Nagel 2013-08-14 22:13:55 -05:00
parent b0073ccdf0
commit 69058bd67f

View File

@ -70,7 +70,7 @@ module Homebrew extend self
if (dir = ARGV.value('destdir')).nil?
unpack_dir = Pathname.pwd
else
unpack_dir = Pathname.new(dir).realpath
unpack_dir = Pathname.new(dir)
unpack_dir.mkpath unless unpack_dir.exist?
end