[Fix] install.sh: when NVM_INSTALL_GITHUB_REPO is set, issue a warning

This should only annoy those testing their PRs; real users should never set this env var
This commit is contained in:
Jordan Harband
2023-11-02 21:10:09 -07:00
parent d02ddcac2c
commit 4bdd57ba0f
2 changed files with 17 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ out=$(nvm_source "anything" 2>&1 >/dev/null) || : #Saving the process here
[ -z "$out" ] && die "nvm_source with invalid parameter should error out"
#nvm_source should always return NVM_SOURCE no matter the parameters
NVM_SOURCE="my_location"
export NVM_SOURCE="my_location"
out=$(nvm_source)
[ "_$out" = "_my_location" ] || die "nvm_source without arguments should have returned \$NVM_SOURCE. Got \"$out\""
out=$(nvm_source "git")