install: warn rather than exit upon failure when updating rubygems (#2612)

This commit is contained in:
bcoles
2022-10-24 17:52:40 +11:00
committed by GitHub
parent e789fbd71c
commit dec3b4a6d4

View File

@@ -207,7 +207,9 @@ check_ruby_version() {
check_rubygems() {
if command_exists gem${RUBYSUFFIX}; then
info 'Updating rubygems...'
sudo gem${RUBYSUFFIX} update --system
if ! sudo gem${RUBYSUFFIX} update --system; then
warn "Updating rubygems failed"
fi
fi
}