Skip to content

Commit

Permalink
Don't try to source ~/.rvm if root. RVM installs to other location as…
Browse files Browse the repository at this point in the history
… root.
  • Loading branch information
Josh Frye committed Jan 23, 2011
1 parent 1327485 commit 0e4e14a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions railsready.sh
Expand Up @@ -125,8 +125,11 @@ elif [ $whichRuby -eq 2 ] ; then
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bashrc"
echo "==>done..."
echo "=> Loading RVM..."
source ~/.rvm/scripts/rvm
source ~/.bashrc
#if RVM is installed as user root it goes to /usr/local/rvm/ not ~/.rvm
if [ $script_runner != "root" ] ; then
source ~/.rvm/scripts/rvm
source ~/.bashrc
fi
echo "==> done..."
echo -e "\n=> Installing $ruby_version_string (this will take awhile)..."
echo -e "=> More information about installing rubies can be found at http://rvm.beginrescueend.com/rubies/installing/ \n"
Expand Down

0 comments on commit 0e4e14a

Please sign in to comment.