From bf0a97b79c40f3635232e2c75298c43cb6d71a1d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 10 Mar 2013 17:03:17 +0000 Subject: Add with_system_path to run using system PATHs. Needed for Linux compatibility. --- Library/Homebrew/extend/fileutils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/extend/fileutils.rb') diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 231d3b769..30ab584c3 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -14,7 +14,7 @@ module FileUtils extend self # /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 = `/usr/bin/mktemp -d #{tmp}/#{name}-XXXX`.chuzzle + tempd = with_system_path { `mktemp -d #{tmp}/#{name}-XXXX` }.chuzzle raise "Failed to create sandbox" if tempd.nil? prevd = pwd cd tempd -- cgit v1.2.3