From 60fe954bfd6a8fe50ff576cd502ef92c25d41fe6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 25 Mar 2015 22:22:51 -0400 Subject: [PATCH] unpack: expand destdir in case a relative path is given Fixes Homebrew/homebrew#38067. --- Library/Homebrew/cmd/unpack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/unpack.rb b/Library/Homebrew/cmd/unpack.rb index d33a9f9ccc..afda67a88d 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