diff options
| author | Mike McQuaid | 2016-08-25 10:37:07 +0100 |
|---|---|---|
| committer | GitHub | 2016-08-25 10:37:07 +0100 |
| commit | df21e5717963f89352b2821edeab8aa3e8d4a549 (patch) | |
| tree | b0fd9cb9ba2b0c8ec6f99f6c0b208091ef07e1d1 /Library | |
| parent | 6e535e1f7c6b52363e7aea0af63d90902b7a0b1c (diff) | |
| parent | 9f072a92d5b9dae90a534b42214f728422be2ab1 (diff) | |
| download | brew-df21e5717963f89352b2821edeab8aa3e8d4a549.tar.bz2 | |
Merge pull request #800 from zmwangx/set-TMPDIR-TEMP-TMP-to-HOMEBREW_TEMP
config: set TMPDIR, TEMP and TMP to HOMEBREW_TEMP
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/config.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb index cef615365..9a49eb4f4 100644 --- a/Library/Homebrew/config.rb +++ b/Library/Homebrew/config.rb @@ -35,6 +35,11 @@ HOMEBREW_LOGS = Pathname.new(ENV["HOMEBREW_LOGS"] || "~/Library/Logs/Homebrew/") # Must use /tmp instead of $TMPDIR because long paths break Unix domain sockets HOMEBREW_TEMP = Pathname.new(ENV.fetch("HOMEBREW_TEMP", "/tmp")) +# Set common tmpdir environment variables to HOMEBREW_TEMP +ENV["TMPDIR"] = HOMEBREW_TEMP +ENV["TEMP"] = HOMEBREW_TEMP +ENV["TMP"] = HOMEBREW_TEMP + unless defined? HOMEBREW_LIBRARY_PATH # Root of the Homebrew code base HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent |
