diff options
| author | Adam Vandenberg | 2013-04-14 09:35:16 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-04-14 09:35:16 -0700 |
| commit | 26dfa2ccbc712b25fe6b296bc6ed2ef18aa40c62 (patch) | |
| tree | 936b8a0955dc1b533c87053c736c222fcd4d9882 /Library/Homebrew | |
| parent | f78116c72b15feb940a638b0bf1e957de581adf7 (diff) | |
| download | homebrew-26dfa2ccbc712b25fe6b296bc6ed2ef18aa40c62.tar.bz2 | |
Only prune taps if taps exist.
Closes #19192.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 52e03ca17..23bef96d2 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -88,6 +88,8 @@ module Homebrew extend self end puts "Pruned #{count} dead formula" + return unless HOMEBREW_REPOSITORY.join("Library/Taps").exist? + count = 0 # check symlinks are all set in each tap HOMEBREW_REPOSITORY.join("Library/Taps").children.each do |tap| |
