diff options
| author | Max Howell | 2012-03-17 00:04:11 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-17 00:04:43 +0000 |
| commit | ab01c1e3579c5065c036a4bd5c9a565e118acf2a (patch) | |
| tree | bba821da6770cd0d53825cdceb75ba604160d999 /Library/Homebrew/cmd | |
| parent | 4d53e2f169aef3fcfaf9dfe02898e5b4f0251705 (diff) | |
| download | brew-ab01c1e3579c5065c036a4bd5c9a565e118acf2a.tar.bz2 | |
Plain `brew tap` doesn't error if no Library/Taps
Fixes Homebrew/homebrew#10994.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index bfbc4a410..dcf308952 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -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 |
