Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils: don't look for bundler executable. #5508

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Library/Homebrew/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,19 @@ def install_gem!(name)
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)
MikeMcQuaid marked this conversation as resolved.
Show resolved Hide resolved

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!
Expand Down