aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2013-12-14 09:35:58 -0600
committerJack Nagel2013-12-14 09:35:58 -0600
commit8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0 (patch)
tree910a366a7e412d4efc57a3714c47a4012ae1ec28 /Library/Homebrew/extend
parent1ed7284548d6e242667ece2d94f4da0b997ebc09 (diff)
downloadhomebrew-8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0.tar.bz2
Extract HOMEBREW_TEMP constant
Diffstat (limited to 'Library/Homebrew/extend')
-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