boneyard-formula-pr: relax hub requirement
Don't force installation of the `hub` formula if it can be found in the search path. (Avoids unnecessary installation when switching between multiple Homebrew installations for different tasks.) Closes #384. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
3b3da02cf3
commit
6dc72f2679
@ -60,7 +60,7 @@ module Homebrew
|
||||
tap_migrations = tap_migrations.sort.inject({}) { |a, e| a.merge!(e[0] => e[1]) }
|
||||
tap_migrations_path.atomic_write(JSON.pretty_generate(tap_migrations) + "\n")
|
||||
end
|
||||
unless Formula["hub"].any_version_installed? || local_only
|
||||
unless which("hub") || local_only
|
||||
if ARGV.dry_run?
|
||||
puts "brew install hub"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user