sunhat/install/ruby.sh

10 lines
311 B
Bash
Raw Normal View History

2024-05-26 18:09:34 -05:00
if ! command -v rbenv &>/dev/null; then
2024-05-26 20:43:53 -05:00
# FIXME: Change to use whatever latest release is
2024-05-26 18:09:34 -05:00
DEFAULT_RUBY_VERSION="3.3.1"
2024-05-25 15:52:00 -05:00
2024-05-26 18:09:34 -05:00
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