You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Table of Contents

Ruby script from within a bash script - Will not start at startup

 

#! /bin/bash
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then

# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"

elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then

# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"

else

printf "ERROR: An RVM installation was not found.\n"

fi

rvm use 2.2.1

 

Second Header

  • No labels