aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
diff options
context:
space:
mode:
authorJack Nagel2013-12-14 09:35:58 -0600
committerJack Nagel2013-12-14 09:35:58 -0600
commitc6c7b9b165df22fe3ac94b155ecdf8952159a18f (patch)
treef55a5c7fa89d23dea689a7e37a79c76396849fc8 /Library/Homebrew/extend/fileutils.rb
parent68f6936070808c23e6a1e6699defa6a23cebbb82 (diff)
downloadbrew-c6c7b9b165df22fe3ac94b155ecdf8952159a18f.tar.bz2
Extract HOMEBREW_TEMP constant
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
-rw-r--r--Library/Homebrew/extend/fileutils.rb4
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