diff options
| author | Mike McQuaid | 2015-12-30 08:23:57 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-12-30 08:23:57 +0000 |
| commit | 482481d24c7d66cdc2a6fdfb9933cf6fb7b429c9 (patch) | |
| tree | 9404f7a6ad61a1993d4ea434af246f63dbeefb6b /Library/Homebrew/extend | |
| parent | bb38d90bce1c5447d48ddca727d97669bcd5a5dd (diff) | |
| download | brew-482481d24c7d66cdc2a6fdfb9933cf6fb7b429c9.tar.bz2 | |
pathname: fix use of `find` on Ruby 1.8.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 555ca7f35..7bdeb2188 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -28,7 +28,7 @@ module DiskUsageExtension def compute_disk_usage if self.directory? @file_count, @disk_usage = [0, 0] - self.find.each do |f| + self.find do |f| if !File.directory?(f) and !f.to_s.match(/\.DS_Store/) @file_count += 1 @disk_usage += File.size(f) |
