Skip to content
Snippets Groups Projects
Commit 92faeb79 authored by Jonathan Grochowski's avatar Jonathan Grochowski Committed by Adam Vandenberg
Browse files

Delete temp directory created during brew doctor


Running brew doctor creates a temporary directory in $HOMEBREW_TEMP or
/tmp but does not clean it up afterwards. This patch deletes the
directory created to prevent polluting $HOMEBREW_TEMP or /tmp with empty
directories.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent 7e578477
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,8 @@ def check_for_multiple_volumes
where_cellar = volumes.which real_cellar
where_temp = volumes.which real_temp
Dir.delete tmp
unless where_cellar == where_temp
puts <<-EOS.undent
Your Cellar & TEMP folders are on different volumes.
......
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