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