[Fix] nvm install -b: do not attempt to download source on a failed binary download with -b

Fixes #3399
This commit is contained in:
Jordan Harband
2024-08-01 10:35:37 -07:00
parent 271720ebfc
commit 14acd3dcdd
2 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,10 @@ die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh
nvm_install_source() {
exit 42
}
VERSION="0.7.0"
EXIT_CODE=$(nvm install -b "${VERSION}" ; echo $?)