aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-08-13 10:34:45 +0100
committerMike McQuaid2015-08-13 10:34:45 +0100
commit15c3fb32b26228b4cef2bb33863e8072ab270a41 (patch)
tree597f3bbc3a0e5de6b3985e0b2dbe4fd33f739429 /Library/Homebrew/cmd
parent04b350dce5d0ac7e87ab4b5882dd1a5f19f39a9d (diff)
downloadbrew-15c3fb32b26228b4cef2bb33863e8072ab270a41.tar.bz2
cleanup: remove SCM directories recursively.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index eda8295d6..6c3b9ffbf 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -73,7 +73,7 @@ module Homebrew
if path.file?
cleanup_path(path) { path.unlink }
elsif path.directory? && path.to_s.include?("--")
- cleanup_path(path) { path.rmdir }
+ cleanup_path(path) { FileUtils.rm_rf path }
end
next
end