diff options
| author | Jack Nagel | 2015-03-25 22:22:51 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-25 22:22:51 -0400 |
| commit | 462139e545068c18e9fe39b65ba7f884a8da8b7e (patch) | |
| tree | 294488ed9daf4c569ec0f904eaec7f97a9504b4b /Library/Homebrew/cmd | |
| parent | 7a11024123259346b2f63efbff35884ec26dea9f (diff) | |
| download | homebrew-462139e545068c18e9fe39b65ba7f884a8da8b7e.tar.bz2 | |
unpack: expand destdir in case a relative path is given
Fixes #38067.
Diffstat (limited to 'Library/Homebrew/cmd')
| -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 |
