mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-20 12:33:43 +00:00
Refactor nvm_remote_version to handle "lts" as a special case
This commit is contained in:
parent
da2720a429
commit
9895f4b48c
3
nvm.sh
3
nvm.sh
@ -748,6 +748,9 @@ nvm_remote_version() {
|
|||||||
"$(nvm_iojs_prefix)")
|
"$(nvm_iojs_prefix)")
|
||||||
VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote_iojs | command tail -1)" &&:
|
VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote_iojs | command tail -1)" &&:
|
||||||
;;
|
;;
|
||||||
|
"lts")
|
||||||
|
VERSION="$(NVM_LTS="lts/*" nvm_ls_remote | command tail -1)" &&:
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "${PATTERN}")" &&:
|
VERSION="$(NVM_LTS="${NVM_LTS-}" nvm_ls_remote "${PATTERN}")" &&:
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user