From 388c4e1076ac5a58d5008abc8e0a8d017698875a Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 22 Oct 2020 03:46:18 +0900 Subject: Make Gem::SystemExitException properly exit with a given code The cause was in how Gem::SystemExitException initializes itself. It didn't pass an exit code to the super method. See the document of SystemExit.new() for details. --- bin/gem | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin/gem') diff --git a/bin/gem b/bin/gem index baf607308b..133774ff11 100755 --- a/bin/gem +++ b/bin/gem @@ -7,12 +7,7 @@ require 'rubygems' require 'rubygems/gem_runner' -require 'rubygems/exceptions' args = ARGV.clone -begin - Gem::GemRunner.new.run args -rescue Gem::SystemExitException => e - exit e.exit_code -end +Gem::GemRunner.new.run args -- cgit v1.2.1