Re-run nvm ls-remote after using a mirror

Otherwise we're left with data from the mirror cached when we run nvm ls
This commit is contained in:
Luke Childs 2017-05-29 17:32:41 +07:00
parent 7cf755d89c
commit 428331fce6

View File

@ -179,9 +179,11 @@ _zsh_nvm_install_wrapper() {
case $2 in case $2 in
'rc') 'rc')
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm install node NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm install node
nvm ls-remote > /dev/null 2>&1
;; ;;
'nightly') 'nightly')
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node
nvm ls-remote > /dev/null 2>&1
;; ;;
*) *)
_zsh_nvm_nvm "$@" _zsh_nvm_nvm "$@"