diff options
| author | Jack Nagel | 2015-03-25 22:22:51 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-25 22:22:51 -0400 |
| commit | 60fe954bfd6a8fe50ff576cd502ef92c25d41fe6 (patch) | |
| tree | 002cbe33eaea87af9295e52b416b06f982ccae65 /Library | |
| parent | 038332d8d76890d3652ba37607c9e1eaa06d23e4 (diff) | |
| download | brew-60fe954bfd6a8fe50ff576cd502ef92c25d41fe6.tar.bz2 | |
unpack: expand destdir in case a relative path is given
Fixes Homebrew/homebrew#38067.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/unpack.rb | 2 |
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 |
