1
0
Fork 0
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:
David Rodríguez 2021-08-25 11:40:01 +02:00 committed by git
parent 30b6df4144
commit e97c671b3a

View file

@ -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