aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-12-30 19:45:41 +0000
committerMike McQuaid2015-12-30 19:46:23 +0000
commit0bca7ad9c3d6f1e547b5c8d5b6b244dda97a0c63 (patch)
tree3987cc707acf17076c43fef0ea8dc44e4fc618d4 /Library
parent5d39a9df1011a09eb08f82aba8ca83da158b1b1e (diff)
downloadbrew-0bca7ad9c3d6f1e547b5c8d5b6b244dda97a0c63.tar.bz2
pathname: don't try to calculate symlink size.
Closes https://github.com/Homebrew/homebrew/issues/47532 Closes https://github.com/Homebrew/homebrew-dupes/issues/542
Diffstat (limited to 'Library')
-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 0b54fdcf1..a166618ec 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -30,7 +30,7 @@ module DiskUsageExtension
@file_count = 0
@disk_usage = 0
self.find do |f|
- if !f.directory? && f.basename.to_s != ".DS_Store"
+ if !f.directory? && !f.symlink? && f.basename.to_s != ".DS_Store"
@file_count += 1
@disk_usage += f.size
end