Skip to content
Snippets Groups Projects
Commit 75642e62 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use Dir.mktmpdir in doctor

This matches how we create temporary directories elsewhere.
parent a1c1c1e3
No related branches found
No related tags found
No related merge requests found
...@@ -809,7 +809,7 @@ def check_for_multiple_volumes ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment