mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-20 07:04:52 +00:00
Create nvm_version_path
This commit is contained in:
9
test/fast/Unit tests/nvm_version_path
Executable file
9
test/fast/Unit tests/nvm_version_path
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
die () { echo $@ ; exit 1; }
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
[ "$(nvm_version_path)" = "$NVM_DIR" ] &&
|
||||
[ "$(nvm_version_path foo)" = "$NVM_DIR/foo" ]
|
||||
|
Reference in New Issue
Block a user