aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index e82e11d6e..2a46f83b4 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -17,6 +17,7 @@ module Homebrew extend self
clean_cache
# seems like a good time to do some additional cleanup
Homebrew.prune unless ARGV.dry_run?
+ rm_DS_Store
else
ARGV.formulae.each do |f|
cleanup_formula f
@@ -65,4 +66,8 @@ module Homebrew extend self
end
end
+ def rm_DS_Store
+ system "find #{HOMEBREW_PREFIX} -name .DS_Store -delete"
+ end
+
end