mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Reuse sh
helper
https://github.com/rubygems/rubygems/commit/c218d4d79e
This commit is contained in:
parent
30b6df4144
commit
e97c671b3a
1 changed files with 1 additions and 4 deletions
|
@ -98,10 +98,7 @@ module Bundler
|
|||
built_gem_path ||= build_gem
|
||||
cmd = [*gem_command, "install", built_gem_path.to_s]
|
||||
cmd << "--local" if local
|
||||
out, status = sh_with_status(cmd)
|
||||
unless status.success?
|
||||
raise("Running `#{cmd}` failed with the following output:\n\n#{out}\n")
|
||||
end
|
||||
sh(cmd)
|
||||
Bundler.ui.confirm "#{name} (#{version}) installed."
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue