Call expand_path on the value of HOMEBREW_CACHE

Fixes Homebrew/homebrew#40752.
This commit is contained in:
Jack Nagel 2015-06-15 21:18:12 -04:00
parent 7b733b4087
commit 8bdc7b92d8

View File

@ -1,6 +1,6 @@
def cache
if ENV['HOMEBREW_CACHE']
Pathname.new(ENV['HOMEBREW_CACHE'])
if ENV["HOMEBREW_CACHE"]
Pathname.new(ENV["HOMEBREW_CACHE"]).expand_path
else
# we do this for historic reasons, however the cache *should* be the same
# directory whichever user is used and whatever instance of brew is executed