From 6dc72f2679208f34d9d09f547dda5a2ba0714a9f Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Mon, 20 Jun 2016 19:58:20 +0200 Subject: [PATCH] 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 --- Library/Homebrew/dev-cmd/boneyard-formula-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb b/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb index f415117007..c55795619e 100644 --- a/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb @@ -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