aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2013-03-10 17:03:17 +0000
committerMike McQuaid2013-03-11 18:26:25 +0000
commit9837bbda550a45b7748f7d888c2b25d5a73abc03 (patch)
tree9251674668cff8a0687f7d9953bbbb799d3d24b9 /Library/Homebrew/extend
parentd39280bdf7aca09ea7c6d9acf927bd95b6d1e499 (diff)
downloadbrew-9837bbda550a45b7748f7d888c2b25d5a73abc03.tar.bz2
Add with_system_path to run using system PATHs.
Needed for Linux compatibility.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/fileutils.rb2
1 files changed, 1 insertions, 1 deletions
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