Use Dir.mktmpdir in doctor
This matches how we create temporary directories elsewhere.
This commit is contained in:
parent
a1c1c1e3d3
commit
75642e6271
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user