diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d055ad504..9543f3ad4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1052,7 +1052,9 @@ class Formula # @private def self.racks @racks ||= if HOMEBREW_CELLAR.directory? - HOMEBREW_CELLAR.subdirs.reject(&:symlink?) + HOMEBREW_CELLAR.subdirs.reject do |rack| + rack.symlink? || rack.subdirs.empty? + end else [] end |
