Skip to content
Snippets Groups Projects
Commit 6dc72f26 authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

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: default avatarMartin Afanasjew <martin@afanasjew.de>
parent 3b3da02c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment