From 54a6cffe8cc4da368e71913dd35151a3ed0ed962 Mon Sep 17 00:00:00 2001 From: Dan Hughes Date: Sat, 24 Aug 2013 10:02:40 -0400 Subject: Use system path for more tools, for Linux compat. Closes #22196. Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3