Don't overwrite existing NVM_DIR vars
parent
8ec6fb22fd
commit
57d62762e1
2
nvm.sh
2
nvm.sh
|
@ -6,7 +6,9 @@
|
||||||
# with much bash help from Matthew Ranney
|
# with much bash help from Matthew Ranney
|
||||||
|
|
||||||
# Auto detect the NVM_DIR using magic bash 3.x stuff
|
# Auto detect the NVM_DIR using magic bash 3.x stuff
|
||||||
|
if [ ! -d "$NVM_DIR" ]; then
|
||||||
export NVM_DIR=$(dirname ${BASH_ARGV[0]})
|
export NVM_DIR=$(dirname ${BASH_ARGV[0]})
|
||||||
|
fi
|
||||||
|
|
||||||
# Emulate curl with wget, if necessary
|
# Emulate curl with wget, if necessary
|
||||||
if [ ! `which curl` ]; then
|
if [ ! `which curl` ]; then
|
||||||
|
|
Loading…
Reference in New Issue