summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2020-06-15 00:28:25 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-15 21:20:37 +0900
commit7a571103f231e8f9e7200aa40b9a56c3f34a2e80 (patch)
treeba4d355eebc27e067e454e3402271faa1698f5d1 /lib/rubygems
parent3ab1cfc325811b862cb81d0360bf83216cd6f235 (diff)
Exit with non-zero status on disabled gem system update.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3229
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/update_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 052d9f9245..612667dfd0 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -264,7 +264,7 @@ command to remove old versions.
def update_rubygems
if Gem.disable_system_update_message
alert_error Gem.disable_system_update_message
- return
+ terminate_interaction 1
end
check_update_arguments