From 8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 14 Dec 2013 09:35:58 -0600 Subject: Extract HOMEBREW_TEMP constant --- Library/Homebrew/extend/fileutils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/extend/fileutils.rb') 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 -- cgit v1.2.3