Use Array#length instead of count. Fixes Homebrew/homebrew#1165
This commit is contained in:
parent
3103ff4b9c
commit
de21400fd0
@ -1,6 +1,6 @@
|
|||||||
def check_for_stray_dylibs
|
def check_for_stray_dylibs
|
||||||
bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f }
|
bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f }
|
||||||
if bad_dylibs.count > 0
|
if bad_dylibs.length > 0
|
||||||
puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems"
|
puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems"
|
||||||
puts "when building Homebrew formula. If you no longer need them, delete them:"
|
puts "when building Homebrew formula. If you no longer need them, delete them:"
|
||||||
puts
|
puts
|
||||||
@ -67,7 +67,7 @@ def check_share_locale
|
|||||||
end
|
end
|
||||||
|
|
||||||
cant_read.sort!
|
cant_read.sort!
|
||||||
if cant_read.count > 0
|
if cant_read.length > 0
|
||||||
puts <<-EOS.undent
|
puts <<-EOS.undent
|
||||||
Some folders in #{locale} aren't writable.
|
Some folders in #{locale} aren't writable.
|
||||||
This can happen if you "sudo make install" software that isn't managed
|
This can happen if you "sudo make install" software that isn't managed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user