Skip to content

Commit

Permalink
Remove unused script conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Sep 2, 2024
1 parent d38d447 commit 943dca5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions script/update_rubygems_and_install_bundler
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 943dca5

Please sign in to comment.