#!/usr/bin/env bash ruby_string="ruby-1.9.2" gemset_name="rebo" if rvm list strings | grep -q "${ruby_string}" ; then rvm use "${ruby_string}@${gemset_name}" --create else echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory." fi