From 41937098453cadc08bf92f267deaed57442d528d Mon Sep 17 00:00:00 2001 From: Nate Levesque Date: Sat, 13 Dec 2014 15:46:40 -0500 Subject: [PATCH] Fix sourcing rvm script Uses the system-wide rvm script if the local (user) one doesn't exist. --- install-beef | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-beef b/install-beef index 60f1448d1..407217ac7 100644 --- a/install-beef +++ b/install-beef @@ -83,7 +83,12 @@ curl -Lsk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installe echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc source ~/.bashrc -source $HOME/.rvm/scripts/rvm + +if [ -e $HOME/.rvm/scripts/rvm ]; then + source $HOME/.rvm/scripts/rvm +else + source /usr/local/rvm/scripts/rvm +fi rvm install 1.9.2 rvm use 1.9.2 --default