Skip to content

Commit 2116d2f

Browse files
committed
Filter out the io.js version dir from nvm_ls output.
Fixes #642.
1 parent 0b4c1e1 commit 2116d2f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nvm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ nvm_ls() {
541541
fi
542542
VERSIONS="$(command find $NVM_DIRS_TO_SEARCH -maxdepth 1 -type d -name "$PATTERN*" \
543543
| command sed "s#$(nvm_version_dir iojs)/#"$(nvm_iojs_prefix)"-#" \
544+
| command grep -v "$(nvm_version_dir iojs)" \
544545
| command sed "s#^$NVM_DIR/##" \
545546
| command grep -v -e '^versions$' \
546547
| command sed 's#^versions/##' \
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
. ../../../nvm.sh
4+
5+
nvm ls io
6+
[ "$?" = "3" ]
7+

0 commit comments

Comments
 (0)