diaspora/.rvmrc
Eitan Adler 2e95183bba Fix buggy assumption that bash exists in /bin.
While here avoid bashisms in the first place.
2012-11-04 22:41:01 +01:00

19 lines
470 B
Bash

#!/bin/sh
. ./script/env/ruby_env
if [ -e '.rvmrc.local' ]; then
. .rvmrc.local;
elif [ -e '.rvmrc_custom' ] ; then
. .rvmrc_custom;
else
if rvm list strings | grep -q "$ruby_version" ; then
rvm --create use "$ruby_version@$gemset"
else
printf "\e[00;31mPLEASE INSTALL RUBY $ruby_version WITH \`rvm install $ruby_version\`"
printf "Don't forget to run \`cd .. && cd -\` afterwards!\e[00m"
return 1
fi
fi
. ./script/env/ensure_right_rubygems