mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
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:
parent
7cf755d89c
commit
428331fce6
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user