Merge pull request #1679 from MikeMcQuaid/no-prune-top-level-dirs

prune: don't remove top-level directories.
This commit is contained in:
Mike McQuaid 2016-12-18 11:16:27 -08:00 committed by GitHub
commit b87d27f939

View File

@ -35,7 +35,7 @@ module Homebrew
path.unlink
end
end
elsif path.directory?
elsif path.directory? && !Keg::PRUNEABLE_DIRECTORIES.include?(path)
dirs << path
end
end