utils: fix bad parameters.

This commit is contained in:
Mike McQuaid 2019-01-08 16:29:27 +00:00 committed by GitHub
parent bf6cd48994
commit 92cb62dace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ module Homebrew
# having to find the right `gem` binary for the running Ruby interpreter. # having to find the right `gem` binary for the running Ruby interpreter.
require "rubygems/commands/install_command" require "rubygems/commands/install_command"
install_cmd = Gem::Commands::InstallCommand.new install_cmd = Gem::Commands::InstallCommand.new
install_cmd.handle_options("--no-document", name) install_cmd.handle_options(["--no-document", name])
exit_code = 1 # Should not matter as `install_cmd.execute` always throws. exit_code = 1 # Should not matter as `install_cmd.execute` always throws.
begin begin
install_cmd.execute install_cmd.execute