diff options
| author | Mike McQuaid | 2016-12-13 01:05:11 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-12-13 01:05:11 +0000 |
| commit | 2e15f713a0fd36d2569d8f22ab7f6dcff94f3b8a (patch) | |
| tree | 75b53c3db6b51a5404c541aabff43426436987ff /Library/Homebrew/cmd | |
| parent | 666463ca2be08261cf103e4870b267f5b461a7f3 (diff) | |
| download | brew-2e15f713a0fd36d2569d8f22ab7f6dcff94f3b8a.tar.bz2 | |
prune: don't remove top-level directories.
Even if they're empty we want to keep these top-level directories around
as the installer has nicely created them with the correct permissions
and this avoids potentially having to use `sudo` to recreate them.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/prune.rb | 2 |
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 |
