From 15c3fb32b26228b4cef2bb33863e8072ab270a41 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Aug 2015 10:34:45 +0100 Subject: [PATCH] cleanup: remove SCM directories recursively. --- Library/Homebrew/cmd/cleanup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index eda8295d62..6c3b9ffbf7 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