aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-04-29 19:23:06 -0400
committerJack Nagel2015-04-30 20:11:18 -0400
commita14085acd31b06bcac7b12c8d36b5951a2f71033 (patch)
tree0c40163ace0ec4eb827971226baa9eac5b5b8bc0 /Library
parentc7ca28a161a202059f80f85faea7ffa90763450e (diff)
downloadbrew-a14085acd31b06bcac7b12c8d36b5951a2f71033.tar.bz2
Default HOMEBREW_TEMP to Dir.tmpdir
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb
index 294e32db2..4002fff3d 100644
--- a/Library/Homebrew/config.rb
+++ b/Library/Homebrew/config.rb
@@ -49,7 +49,7 @@ end
HOMEBREW_LOGS = Pathname.new(ENV['HOMEBREW_LOGS'] || '~/Library/Logs/Homebrew/').expand_path
-HOMEBREW_TEMP = Pathname.new(ENV.fetch('HOMEBREW_TEMP', '/tmp'))
+HOMEBREW_TEMP = Pathname.new(ENV["HOMEBREW_TEMP"] || Dir.tmpdir)
if not defined? HOMEBREW_LIBRARY_PATH
HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent.join("Homebrew")