Skip to content

Commit

Permalink
[Fix] remove the unused and broken $NVM_PATH.
Browse files Browse the repository at this point in the history
Added in 359a83e. Fixes #1353.
  • Loading branch information
ljharb committed Dec 16, 2016
1 parent 2af47b0 commit fcd6331
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nvm.sh
Expand Up @@ -2576,7 +2576,7 @@ nvm() {
nvm_echo "$NVM_DIR/*/lib/node_modules removed from \$NODE_PATH"
fi
fi
unset NVM_BIN NVM_PATH
unset NVM_BIN
;;
"use" )
local PROVIDED_VERSION
Expand Down Expand Up @@ -2674,7 +2674,6 @@ nvm() {
fi
export PATH
hash -r
export NVM_PATH="$NVM_VERSION_DIR/lib/node"
export NVM_BIN="$NVM_VERSION_DIR/bin"
if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then
command rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"
Expand Down Expand Up @@ -3189,7 +3188,7 @@ nvm() {
node_version_has_solaris_binary iojs_version_has_solaris_binary \
> /dev/null 2>&1
unset RC_VERSION NVM_NODEJS_ORG_MIRROR NVM_IOJS_ORG_MIRROR NVM_DIR \
NVM_CD_FLAGS NVM_BIN NVM_MAKE_JOBS NVM_PATH \
NVM_CD_FLAGS NVM_BIN NVM_MAKE_JOBS \
> /dev/null 2>&1
;;
* )
Expand Down

0 comments on commit fcd6331

Please sign in to comment.