Make sure these vars are local, where supported

master
Jordan Harband 2014-06-22 17:20:31 -07:00
parent 8349f0ff48
commit 4b593bcda2
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -571,6 +571,8 @@ nvm() {
NODE_PATH=$RUN_NODE_PATH $NVM_DIR/$VERSION/bin/node "$@"
;;
"ls" | "list" )
local NVM_LS_OUTPUT
local NVM_LS_EXIT_CODE
NVM_LS_OUTPUT=$(nvm_ls "$2")
NVM_LS_EXIT_CODE=$?
nvm_print_versions "$NVM_LS_OUTPUT"