diff options
| author | Dave Bayer | 2011-08-22 14:56:05 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-22 20:26:53 -0700 |
| commit | f16c72ef177224655bc2b0ea660cb9155e311219 (patch) | |
| tree | bca0849e0afcf73769782668a5e792bd4042e97f /Library/Homebrew | |
| parent | a6fd447596d2f04e0208149bdcb7b7794940ee28 (diff) | |
| download | homebrew-f16c72ef177224655bc2b0ea660cb9155e311219.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/Homebrew')
| -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 |
