Merge pull request #7964 from SeekingMeaning/xcodebuild-hotfix

sandbox: use Dir.home instead of HOME
This commit is contained in:
Bo Anderson 2020-07-10 17:47:43 +01:00 committed by GitHub
commit ead8768ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)