sunhat/install/ruby.sh
2024-05-26 18:43:53 -07:00

10 lines
311 B
Bash

if ! command -v rbenv &>/dev/null; then
# FIXME: Change to use whatever latest release is
DEFAULT_RUBY_VERSION="3.3.1"
sudo apt install -y rbenv
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install $DEFAULT_RUBY_VERSION
rbenv global $DEFAULT_RUBY_VERSION
fi