make sure custom rvmrc works too if you directly cd into a subdir [ci skip]

This commit is contained in:
Jonne Haß 2012-01-24 19:20:27 +01:00
parent b021a26674
commit 5ad15974fb

6
.rvmrc
View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
if [ -e '.rvmrc_custom' ]; then
source .rvmrc_custom; root=$(dirname $(readlink -e $BASH_SOURCE))
if [ -e "${root}/.rvmrc_custom" ]; then
source ${root}/.rvmrc_custom
else else
rvm --create use ree-1.8.7-2011.03@diaspora rvm --create use ree-1.8.7-2011.03@diaspora
fi fi