Skip to content

Commit

Permalink
Filter out the io.js version dir from nvm_ls output.
Browse files Browse the repository at this point in the history
Fixes #642.
  • Loading branch information
ljharb committed Feb 3, 2015
1 parent 0b4c1e1 commit 2116d2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/##' \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

. ../../../nvm.sh

nvm ls io
[ "$?" = "3" ]

0 comments on commit 2116d2f

Please sign in to comment.