Plain brew tap doesn't error if no Library/Taps
Fixes Homebrew/homebrew#10994.
This commit is contained in:
parent
4d53e2f169
commit
ab01c1e357
@ -2,9 +2,10 @@ module Homebrew extend self
|
||||
|
||||
def tap
|
||||
if ARGV.empty?
|
||||
(HOMEBREW_LIBRARY/"Taps").children.each do |tap|
|
||||
tapd = HOMEBREW_LIBRARY/"Taps"
|
||||
tapd.children.each do |tap|
|
||||
puts tap.basename.sub('-', '/') if (tap/'.git').directory?
|
||||
end
|
||||
end if tapd.directory?
|
||||
else
|
||||
install_tap(*tap_args)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user