Don't overwrite existing NVM_DIR vars

master
Isaac Wolkerstorfer 2011-01-25 17:29:49 +01:00
parent 8ec6fb22fd
commit 57d62762e1
1 changed files with 3 additions and 1 deletions

2
nvm.sh
View File

@ -6,7 +6,9 @@
# with much bash help from Matthew Ranney
# Auto detect the NVM_DIR using magic bash 3.x stuff
if [ ! -d "$NVM_DIR" ]; then
export NVM_DIR=$(dirname ${BASH_ARGV[0]})
fi
# Emulate curl with wget, if necessary
if [ ! `which curl` ]; then