From 943dca5850939bf8ccece9a422e9d566575075f2 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Mon, 2 Sep 2024 22:24:57 +0100 Subject: [PATCH] Remove unused script conditional --- script/update_rubygems_and_install_bundler | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/script/update_rubygems_and_install_bundler b/script/update_rubygems_and_install_bundler index c85e5dcc4..c2673e341 100755 --- a/script/update_rubygems_and_install_bundler +++ b/script/update_rubygems_and_install_bundler @@ -11,22 +11,10 @@ function is_ruby_3_plus { fi } -function is_ruby_26_plus { - if ruby -e "exit(RUBY_VERSION.to_f >= 2.6)"; then - return 0 - else - return 1 - fi -} - if is_ruby_3_plus; then gem update --no-document --system gem install --no-document bundler -elif is_ruby_26_plus; then +else gem update --no-document --system '3.4.22' gem install --no-document bundler -else - echo "Warning installing older versions of Rubygems / Bundler" - gem update --system '3.3.26' - gem install bundler -v '2.3.26' fi