diff options
| author | Jack Nagel | 2013-12-14 09:35:58 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-12-14 09:35:58 -0600 | 
| commit | c6c7b9b165df22fe3ac94b155ecdf8952159a18f (patch) | |
| tree | f55a5c7fa89d23dea689a7e37a79c76396849fc8 /Library/Homebrew/extend/fileutils.rb | |
| parent | 68f6936070808c23e6a1e6699defa6a23cebbb82 (diff) | |
| download | brew-c6c7b9b165df22fe3ac94b155ecdf8952159a18f.tar.bz2 | |
Extract HOMEBREW_TEMP constant
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 881c56590..6a45ad51f 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -13,8 +13,8 @@ module FileUtils extend self      # If the user has FileVault enabled, then we can't mv symlinks from the      # /tmp volume to the other volume. So we let the user override the tmp      # prefix if they need to. -    tmp = ENV['HOMEBREW_TEMP'].chuzzle || '/tmp' -    tempd = with_system_path { `mktemp -d #{tmp}/#{prefix}-XXXX` }.chuzzle + +    tempd = with_system_path { `mktemp -d #{HOMEBREW_TEMP}/#{prefix}-XXXX` }.chuzzle      raise "Failed to create sandbox" if tempd.nil?      prevd = pwd      cd tempd | 
