diff options
| author | Jonathan Grochowski | 2011-11-20 01:53:52 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-11-20 13:22:43 -0800 |
| commit | 92faeb79b23c8acdfc73cce0e50e5462865cad88 (patch) | |
| tree | 369fcbba16fea4435a98d7b10de32510c450676f /Library | |
| parent | 7e578477939a4e5dede2011ef4c43608a320982f (diff) | |
| download | brew-92faeb79b23c8acdfc73cce0e50e5462865cad88.tar.bz2 | |
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: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 0de6508ca..3924960ec 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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. |
