aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/cleaner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb
index bbfb24002..02ff9c5cd 100644
--- a/Library/Homebrew/cleaner.rb
+++ b/Library/Homebrew/cleaner.rb
@@ -43,7 +43,7 @@ class Cleaner
dirs = []
symlinks = []
@f.prefix.find do |path|
- if @f.skip_clean? path
+ if path == @f.libexec or @f.skip_clean?(path)
Find.prune
elsif path.symlink?
symlinks << path