This commit is contained in:
Jonas Dohse 2014-03-10 11:06:37 +00:00
commit c76ec89af6

2
nvm.sh
View File

@ -19,7 +19,7 @@ fi
# Auto detect the NVM_DIR # Auto detect the NVM_DIR
if [ ! -d "$NVM_DIR" ]; then if [ ! -d "$NVM_DIR" ]; then
if [ -n "$BASH_SOURCE" ]; then if [ -n "${BASH_SOURCE[0]:-$0}" ]; then
export NVM_DIR=$(cd $NVM_CD_FLAGS $(dirname ${BASH_SOURCE[0]:-$0}) > /dev/null && pwd) export NVM_DIR=$(cd $NVM_CD_FLAGS $(dirname ${BASH_SOURCE[0]:-$0}) > /dev/null && pwd)
else else
export NVM_DIR=$HOME/.nvm export NVM_DIR=$HOME/.nvm