From f03aeb41c789b82b5c6bac225379a686871e572e Mon Sep 17 00:00:00 2001 From: Seeker Date: Thu, 9 Jul 2020 11:37:03 -0700 Subject: [PATCH] sandbox: use Dir.home instead of HOME --- Library/Homebrew/sandbox.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index 8e5d9bd384..d50ec020f1 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -47,12 +47,12 @@ class Sandbox end def allow_cvs - allow_write_path "#{ENV["HOME"]}/.cvspass" + allow_write_path "#{Dir.home(ENV["USER"])}/.cvspass" end def allow_fossil - allow_write_path "#{ENV["HOME"]}/.fossil" - allow_write_path "#{ENV["HOME"]}/.fossil-journal" + allow_write_path "#{Dir.home(ENV["USER"])}/.fossil" + allow_write_path "#{Dir.home(ENV["USER"])}/.fossil-journal" end def allow_write_cellar(formula) @@ -63,7 +63,7 @@ class Sandbox # Xcode projects expect access to certain cache/archive dirs. def allow_write_xcode - allow_write_path "#{ENV["HOME"]}/Library/Developer" + allow_write_path "#{Dir.home(ENV["USER"])}/Library/Developer" end def allow_write_log(formula)