Merge pull request #5508 from MikeMcQuaid/utils-bundler-executable
utils: don't look for bundler executable.
This commit is contained in:
commit
8acb183456
@ -240,19 +240,19 @@ module Homebrew
|
|||||||
odie "Failed to install/update the '#{name}' gem." if exit_code.nonzero?
|
odie "Failed to install/update the '#{name}' gem." if exit_code.nonzero?
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_gem_setup_path!(name)
|
def install_gem_setup_path!(name, executable: name)
|
||||||
install_gem!(name)
|
install_gem!(name)
|
||||||
|
|
||||||
return if which(name)
|
return if which(executable)
|
||||||
|
|
||||||
odie <<~EOS
|
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"]}
|
#{ENV["PATH"]}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_bundler!
|
def install_bundler!
|
||||||
install_gem_setup_path! "bundler"
|
install_gem_setup_path! "bundler", executable: "bundle"
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_bundler_gems!
|
def install_bundler_gems!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user