mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
parent
0b4c1e14cf
commit
2116d2ff91
1
nvm.sh
1
nvm.sh
@ -541,6 +541,7 @@ nvm_ls() {
|
||||
fi
|
||||
VERSIONS="$(command find $NVM_DIRS_TO_SEARCH -maxdepth 1 -type d -name "$PATTERN*" \
|
||||
| command sed "s#$(nvm_version_dir iojs)/#"$(nvm_iojs_prefix)"-#" \
|
||||
| command grep -v "$(nvm_version_dir iojs)" \
|
||||
| command sed "s#^$NVM_DIR/##" \
|
||||
| command grep -v -e '^versions$' \
|
||||
| command sed 's#^versions/##' \
|
||||
|
7
test/fast/Listing versions/Running "nvm ls io" should return NA
Executable file
7
test/fast/Listing versions/Running "nvm ls io" should return NA
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
nvm ls io
|
||||
[ "$?" = "3" ]
|
||||
|
Loading…
Reference in New Issue
Block a user