From 0895ef533e32d781ebfe4dad94d051c7a5a11af2 Mon Sep 17 00:00:00 2001 From: Mateusz Swiszcz Date: Fri, 5 Mar 2021 23:30:17 +0100 Subject: [PATCH] Add RVM (Ruby Version Manager) to setup --- bin/setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/setup b/bin/setup index ecd60ba74..cce91620f 100755 --- a/bin/setup +++ b/bin/setup @@ -241,6 +241,11 @@ ensure-ruby-installed() { error "Please use chruby to install Ruby $REQUIRED_RUBY_VERSION!" fi fi + elif has-executable rvm; then + if ! (rvm list | grep $REQUIRED_RUBY_VERSION'\>' &>/dev/null); then + banner "Installing Ruby $REQUIRED_RUBY_VERSION with rvm" + rvm install $REQUIRED_RUBY_VERSION + fi else error "You don't seem to have a Ruby manager installed." print-wrapped "\