From a7d72351cf9f6a7b456e5c280f3e4cad4718eee3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 8 Jan 2019 20:33:39 +0000 Subject: [PATCH] utils: don't look for bundler executable. This exists sometimes and not others it seems. --- Library/Homebrew/utils.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 81ce462e05..b0ddf7e972 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -240,19 +240,19 @@ module Homebrew odie "Failed to install/update the '#{name}' gem." if exit_code.nonzero? end - def install_gem_setup_path!(name) + def install_gem_setup_path!(name, executable: name) install_gem!(name) - return if which(name) + return if which(executable) odie <<~EOS - The '#{name}' gem is installed but couldn't find '#{name}' in the PATH: + The '#{name}' gem is installed but couldn't find '#{executable}' in the PATH: #{ENV["PATH"]} EOS end def install_bundler! - install_gem_setup_path! "bundler" + install_gem_setup_path! "bundler", executable: "bundle" end def install_bundler_gems!