cleanup: remove SCM directories recursively.

This commit is contained in:
Mike McQuaid 2015-08-13 10:34:45 +01:00
parent 04b350dce5
commit 15c3fb32b2

View File

@ -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