diff options
author | David RodrÃguez <[email protected]> | 2021-08-25 11:40:01 +0200 |
---|---|---|
committer | git <[email protected]> | 2021-10-13 23:30:12 +0900 |
commit | e97c671b3a21aeb1b2813f44487b6232cb39a205 (patch) | |
tree | 4cde6950d99f3174e3896f49a1278006365e0003 /lib | |
parent | 30b6df41440ea2a0421efd0f3146750e872760fc (diff) |
[rubygems/rubygems] Reuse `sh` helper
https://github.com/rubygems/rubygems/commit/c218d4d79e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/gem_helper.rb | 5 |
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 |