aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-03-25 22:22:51 -0400
committerJack Nagel2015-03-25 22:22:51 -0400
commit60fe954bfd6a8fe50ff576cd502ef92c25d41fe6 (patch)
tree002cbe33eaea87af9295e52b416b06f982ccae65 /Library/Homebrew
parent038332d8d76890d3652ba37607c9e1eaa06d23e4 (diff)
downloadbrew-60fe954bfd6a8fe50ff576cd502ef92c25d41fe6.tar.bz2
unpack: expand destdir in case a relative path is given
Fixes Homebrew/homebrew#38067.
Diffstat (limited to 'Library/Homebrew')
-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