diff options
| author | Dave Bayer | 2011-08-22 14:56:05 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-22 20:26:53 -0700 |
| commit | 84eae3c425336e53e8758d0f12acd52f8eea3c05 (patch) | |
| tree | a1d600203c86801f057b53890c57fdee36897a2b /Library | |
| parent | 471dc987e55cf03091804d12b30e404ec650f76b (diff) | |
| download | brew-84eae3c425336e53e8758d0f12acd52f8eea3c05.tar.bz2 | |
Fix uninstall.rb `brew remove --force` "Directory not empty" error
Finder activity such as moving the position of an icon can create an unexpected
.DS_Store file in a Cellar directory. This causes `brew remove --force` to throw
an error that is reported as
Error: Directory not empty - /usr/local/Cellar/<formula>
This fix avoids that error, by calling rmtree rather than rmdir.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/uninstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index 9b16cfe54..76c94969a 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -20,7 +20,7 @@ module Homebrew extend self keg.rmtree end end - rack.rmdir + rack.rmtree end end end |
