Use Dir.mktmpdir in doctor

This matches how we create temporary directories elsewhere.
This commit is contained in:
Jack Nagel 2015-06-23 23:18:56 -04:00
parent a1c1c1e3d3
commit 75642e6271

View File

@ -809,7 +809,7 @@ def check_for_multiple_volumes
# Find the volumes for the TMP folder & HOMEBREW_CELLAR # Find the volumes for the TMP folder & HOMEBREW_CELLAR
real_cellar = HOMEBREW_CELLAR.realpath real_cellar = HOMEBREW_CELLAR.realpath
tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXXXX` }.strip tmp = Pathname.new(Dir.mktmpdir("doctor", HOMEBREW_TEMP))
real_temp = tmp.realpath.parent real_temp = tmp.realpath.parent
where_cellar = volumes.which real_cellar where_cellar = volumes.which real_cellar