From 113b216309da6b976a6543728e0626e95036cd41 Mon Sep 17 00:00:00 2001 From: Armando Fox Date: Fri, 23 Oct 2015 10:43:35 -0700 Subject: [PATCH] Update configure-cloud9-1.1.2.sh reload RVM after installing desired version and before installing gems; switch to rvm 2.2.2 at end and add this to .profile --- vm-setup/configure-cloud9-1.1.2.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vm-setup/configure-cloud9-1.1.2.sh b/vm-setup/configure-cloud9-1.1.2.sh index 82e374a..5f7f6fb 100644 --- a/vm-setup/configure-cloud9-1.1.2.sh +++ b/vm-setup/configure-cloud9-1.1.2.sh @@ -1,5 +1,5 @@ # Please pipe this script to a "bash --login" shell - +RUBY=2.2.2 set +v # install heroku @@ -7,8 +7,10 @@ sudo apt-get install heroku-toolbelt # install the correct version of ruby echo yes | rvm remove all -rvm install ruby-2.2.2 -rvm use ruby-2.2.2 +rvm install $RUBY +# reload rvm so it can modify environment of running shell script +. /usr/local/rvm/scripts/rvm +rvm use $RUBY /bin/bash <> $HOME/.profile +rvm use $RUBY