unpack: expand destdir in case a relative path is given
Fixes Homebrew/homebrew#38067.
This commit is contained in:
parent
038332d8d7
commit
60fe954bfd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user