aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2018-01-21 14:51:19 +0000
committerGitHub2018-01-21 14:51:19 +0000
commit8b63db6d0702fe21b8abeade5dee6e32a10b01a9 (patch)
treeca3036efd3f7c9dfc94b46bb758a03e129a4159c /Library
parent282277ecbee453619eec83c21c8eb80723b3f446 (diff)
parentf818f0e68139fd1e7b2665f0cd415936aa8cc63d (diff)
downloadbrew-8b63db6d0702fe21b8abeade5dee6e32a10b01a9.tar.bz2
Merge pull request #3703 from ilovezfs/dot-dirs-are-not-racks
formula: reject dot dirs as racks
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index ad7e28a2e..1355e5945 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -1371,7 +1371,7 @@ class Formula
def self.racks
@racks ||= if HOMEBREW_CELLAR.directory?
HOMEBREW_CELLAR.subdirs.reject do |rack|
- rack.symlink? || rack.subdirs.empty?
+ rack.symlink? || rack.basename.to_s.start_with?(".") || rack.subdirs.empty?
end
else
[]