aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index 74437b005..8457e7500 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -111,7 +111,10 @@ module Homebrew
end
def rm_DS_Store
- quiet_system "find", HOMEBREW_PREFIX.to_s, "-name", ".DS_Store", "-delete"
+ paths = %w[Cellar Frameworks Library bin etc include lib opt sbin share var].
+ map { |p| HOMEBREW_PREFIX/p }.select(&:exist?)
+ args = paths.map(&:to_s) + %w[-name .DS_Store -delete]
+ quiet_system "find", *args
end
end