real_cellar cannot be nil
This commit is contained in:
parent
7557cc1683
commit
d7de5b6e24
@ -661,7 +661,7 @@ def check_for_config_scripts
|
|||||||
|
|
||||||
paths.each do |p|
|
paths.each do |p|
|
||||||
next if whitelist.include? p.downcase
|
next if whitelist.include? p.downcase
|
||||||
next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})] if real_cellar
|
next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})]
|
||||||
|
|
||||||
configs = Dir["#{p}/*-config"]
|
configs = Dir["#{p}/*-config"]
|
||||||
config_scripts << [p, configs.map { |c| File.basename(c) }] unless configs.empty?
|
config_scripts << [p, configs.map { |c| File.basename(c) }] unless configs.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user