aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMichael Dippery2010-09-02 11:47:18 -0400
committerAdam Vandenberg2010-11-05 19:44:56 -0700
commit172eddd15ebbeaf5aee82baf0aff06b802f0027b (patch)
tree375b1941930a8acd205e50ac483c7a68f1be8fa5 /Library/Homebrew/extend
parente20d51a513cf2e4cc66a931ba4336ac18dc17023 (diff)
downloadhomebrew-172eddd15ebbeaf5aee82baf0aff06b802f0027b.tar.bz2
More .DS_Store ignoring
* Don't link .DS_Store files * Don't list .DS_Store files in `brew info` Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 009cdfa48..f61a69e09 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -92,7 +92,7 @@ class Pathname
def abv
out=''
- n=`find #{to_s} -type f | wc -l`.to_i
+ n=`find #{to_s} -type f ! -name .DS_Store | wc -l`.to_i
out<<"#{n} files, " if n > 1
out<<`/usr/bin/du -hd0 #{to_s} | cut -d"\t" -f1`.strip
end