aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorDan Hughes2013-08-24 10:02:40 -0400
committerAdam Vandenberg2013-08-30 13:02:19 -0700
commit51d1a8e3c5e1a0119837304c7678a3287eb66a67 (patch)
tree6549909909ad23aefb14fb78348e516f3348e4a5 /Library/Homebrew/cmd
parent6e4ad9eb22e94595bc09194bc2d73d14f107086f (diff)
downloadbrew-51d1a8e3c5e1a0119837304c7678a3287eb66a67.tar.bz2
Use system path for more tools, for Linux compat.
Closes Homebrew/homebrew#22196. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index c1921c975..3dff2e9ef 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -660,7 +660,7 @@ def check_for_multiple_volumes
real_cellar = HOMEBREW_CELLAR.realpath
tmp_prefix = ENV['HOMEBREW_TEMP'] || '/tmp'
- tmp = Pathname.new `/usr/bin/mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX`.strip
+ tmp = Pathname.new with_system_path { `mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX` }.strip
real_temp = tmp.realpath.parent
where_cellar = volumes.which real_cellar