Skip to content

Commit

Permalink
Refactor nvm_remote_version to handle "lts" as a special case
Browse files Browse the repository at this point in the history
  • Loading branch information
r4reetik committed Oct 5, 2024
1 parent da2720a commit 9895f4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ nvm_remote_version() {
"$(nvm_iojs_prefix)")
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}")" &&:
;;
Expand Down

0 comments on commit 9895f4b

Please sign in to comment.