From 8bdc7b92d8f9b5bff1207b362295abc226d1d79c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 15 Jun 2015 21:18:12 -0400 Subject: [PATCH] Call expand_path on the value of HOMEBREW_CACHE Fixes Homebrew/homebrew#40752. --- Library/Homebrew/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb index 294e32db20..fe153bf6db 100644 --- a/Library/Homebrew/config.rb +++ b/Library/Homebrew/config.rb @@ -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