mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-20 15:14:51 +00:00
[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:
@@ -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")
|
||||
|
Reference in New Issue
Block a user