Because ubuntu seems to have NVM_DIR set to /usr/sbin

This commit is contained in:
Lloyd Watkin 2014-07-24 22:52:22 +01:00
parent 8eb479eae2
commit 839c497d29

2
nvm.sh
View File

@ -39,7 +39,7 @@ if nvm_has "unsetopt"; then
fi fi
# Auto detect the NVM_DIR when not set # Auto detect the NVM_DIR when not set
if [ -z "$NVM_DIR" ]; then if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then
if [ -n "$BASH_SOURCE" ]; then if [ -n "$BASH_SOURCE" ]; then
NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}" NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
fi fi