only use if defined
This commit is contained in:
parent
6f283632c5
commit
cb14572083
1 changed files with 6 additions and 1 deletions
7
.rvmrc
7
.rvmrc
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
root=$(dirname $(readlink -e $BASH_SOURCE))
|
if [ -n "${BASH_SOURCE}" ]; then
|
||||||
|
root=$(dirname $(readlink -e $BASH_SOURCE))
|
||||||
|
else
|
||||||
|
root="."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "${root}/.rvmrc_custom" ]; then
|
if [ -e "${root}/.rvmrc_custom" ]; then
|
||||||
source ${root}/.rvmrc_custom
|
source ${root}/.rvmrc_custom
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue