summaryrefslogtreecommitdiff
path: root/lib/bundler/gem_helper.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-08-25 11:40:01 +0200
committergit <svn-admin@ruby-lang.org>2021-10-13 23:30:12 +0900
commite97c671b3a21aeb1b2813f44487b6232cb39a205 (patch)
tree4cde6950d99f3174e3896f49a1278006365e0003 /lib/bundler/gem_helper.rb
parent30b6df41440ea2a0421efd0f3146750e872760fc (diff)
[rubygems/rubygems] Reuse `sh` helper
https://github.com/rubygems/rubygems/commit/c218d4d79e
Diffstat (limited to 'lib/bundler/gem_helper.rb')
-rw-r--r--lib/bundler/gem_helper.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 01101205e3..c8fb74072a 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -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