aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-06-15 21:18:12 -0400
committerJack Nagel2015-06-15 21:21:53 -0400
commit8bdc7b92d8f9b5bff1207b362295abc226d1d79c (patch)
tree64423401ebf9d92b0464f6334590358ca974f882 /Library
parent7b733b408799c6a44343b5e5d5b68e6f26842783 (diff)
downloadbrew-8bdc7b92d8f9b5bff1207b362295abc226d1d79c.tar.bz2
Call expand_path on the value of HOMEBREW_CACHE
Fixes Homebrew/homebrew#40752.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb
index 294e32db2..fe153bf6d 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