mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-11 09:09:07 +00:00
Use nvm_version_dir in nvm_version_path
This commit is contained in:
@@ -4,6 +4,6 @@ die () { echo $@ ; exit 1; }
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
[ "$(nvm_version_path)" = "$NVM_DIR" ] &&
|
||||
[ "$(nvm_version_path foo)" = "$NVM_DIR/foo" ]
|
||||
[ "$(nvm_version_path foo)" = "$NVM_DIR/foo" ] || die '"nvm_version_path foo" did not return correct location'
|
||||
[ "$(nvm_version_path 2>&1)" = "version is required" ] || die '"nvm_version_path" did not error out'
|
||||
|
||||
|
Reference in New Issue
Block a user