Updated source string, use hard path as NVM is not always installed in $HOME/.nvm

This commit is contained in:
Koen Punt 2013-12-22 18:03:06 +01:00
parent 365167a4a3
commit ca9bcb8ce4
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ if [ ! "$PROFILE" ]; then
fi
fi
SOURCE_STR="[[ -s "$NVM_DIR/nvm.sh" ]] && . "$NVM_DIR/nvm.sh" # This loads NVM"
SOURCE_STR="[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\" # This loads NVM"
if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then
if [ -z $PROFILE ]; then

View File

@ -39,7 +39,7 @@ if [ ! "$PROFILE" ]; then
fi
fi
SOURCE_STR="[ -s \$HOME/.nvm/nvm.sh ] && . \$HOME/.nvm/nvm.sh # This loads NVM"
SOURCE_STR="[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\" # This loads NVM"
if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then
if [ -z $PROFILE ]; then