[New] allow an empty $NVM_IOJS_ORG_MIRROR to quietly skip io.js lookup

Fixes #1080. Fixes #3386.
This commit is contained in:
Jordan Harband
2024-07-07 22:30:51 -07:00
parent 762f9ef9d1
commit 1fd0c8ca90
2 changed files with 35 additions and 25 deletions

5
nvm.sh
View File

@@ -765,6 +765,11 @@ nvm_remote_versions() {
NVM_FLAVOR="${NVM_NODE_PREFIX}"
unset PATTERN
;;
*)
if [ "${NVM_IOJS_ORG_MIRROR-x}" = '' ]; then
NVM_FLAVOR="${NVM_NODE_PREFIX}"
fi
;;
esac
if nvm_validate_implicit_alias "${PATTERN-}" 2>/dev/null; then