aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2015-03-25 22:22:51 -0400
committerJack Nagel2015-03-25 22:22:51 -0400
commit462139e545068c18e9fe39b65ba7f884a8da8b7e (patch)
tree294488ed9daf4c569ec0f904eaec7f97a9504b4b
parent7a11024123259346b2f63efbff35884ec26dea9f (diff)
downloadhomebrew-462139e545068c18e9fe39b65ba7f884a8da8b7e.tar.bz2
unpack: expand destdir in case a relative path is given
Fixes #38067.
-rw-r--r--Library/Homebrew/cmd/unpack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/unpack.rb b/Library/Homebrew/cmd/unpack.rb
index d33a9f9cc..afda67a88 100644
--- a/Library/Homebrew/cmd/unpack.rb
+++ b/Library/Homebrew/cmd/unpack.rb
@@ -13,7 +13,7 @@ module Homebrew
raise FormulaUnspecifiedError if formulae.empty?
if dir = ARGV.value("destdir")
- unpack_dir = Pathname.new(dir)
+ unpack_dir = Pathname.new(dir).expand_path
unpack_dir.mkpath
else
unpack_dir = Pathname.pwd