update: guard against nil in tap migrations
This commit is contained in:
parent
f41e1a3b83
commit
8335401bc3
@ -59,7 +59,9 @@ module Homebrew extend self
|
|||||||
# automatically tap any migrated formulae's new tap
|
# automatically tap any migrated formulae's new tap
|
||||||
report.select_formula(:D).each do |f|
|
report.select_formula(:D).each do |f|
|
||||||
next unless (HOMEBREW_CELLAR/f).exist?
|
next unless (HOMEBREW_CELLAR/f).exist?
|
||||||
tap_user, tap_repo = TAP_MIGRATIONS[f].split '/'
|
migration = TAP_MIGRATIONS[f]
|
||||||
|
next unless migration
|
||||||
|
tap_user, tap_repo = migration.split '/'
|
||||||
begin
|
begin
|
||||||
install_tap tap_user, tap_repo
|
install_tap tap_user, tap_repo
|
||||||
rescue AlreadyTappedError => e
|
rescue AlreadyTappedError => e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user