aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-12-18 11:16:27 -0800
committerGitHub2016-12-18 11:16:27 -0800
commitb87d27f939c6ed6d93bd80dc78240e25eb65ed49 (patch)
tree9a6d1248633e9f8c5716218dfeb68b083ead58ae /Library/Homebrew
parent5aeb7125c42f04e76d6bcb959bf915e3456b09b1 (diff)
parent2e15f713a0fd36d2569d8f22ab7f6dcff94f3b8a (diff)
downloadbrew-b87d27f939c6ed6d93bd80dc78240e25eb65ed49.tar.bz2
Merge pull request #1679 from MikeMcQuaid/no-prune-top-level-dirs
prune: don't remove top-level directories.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/prune.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/prune.rb b/Library/Homebrew/cmd/prune.rb
index e2e6d77b8..9fc6dbcd9 100644
--- a/Library/Homebrew/cmd/prune.rb
+++ b/Library/Homebrew/cmd/prune.rb
@@ -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