$NODE_PATH is special, so this function shouldn't risk clobbering it.
parent
7bbcd3a977
commit
052743816f
6
nvm.sh
6
nvm.sh
|
@ -253,11 +253,11 @@ nvm_alias() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_ls_current() {
|
nvm_ls_current() {
|
||||||
local NODE_PATH
|
local NVM_LS_CURRENT_NODE_PATH
|
||||||
NODE_PATH="$(which node 2> /dev/null)"
|
NVM_LS_CURRENT_NODE_PATH="$(which node 2> /dev/null)"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'none'
|
echo 'none'
|
||||||
elif nvm_tree_contains_path "$NVM_DIR" "$NODE_PATH"; then
|
elif nvm_tree_contains_path "$NVM_DIR" "$NVM_LS_CURRENT_NODE_PATH"; then
|
||||||
local VERSION
|
local VERSION
|
||||||
VERSION=`node -v 2>/dev/null`
|
VERSION=`node -v 2>/dev/null`
|
||||||
if [ "$VERSION" = "v0.6.21-pre" ]; then
|
if [ "$VERSION" = "v0.6.21-pre" ]; then
|
||||||
|
|
Loading…
Reference in New Issue