Skip to content
Myr

Filter out the io.js version dir from nvm_ls output.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #642.

authored by Jordan Harband · committed by Jordan Harband · parent 0b4c1e1 · Browse files · 2 files+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−0 removed

  • tests:+7 added−0 removed
  • other:+1 added−0 removed

2 files+8 added−0 removed

added:test/fast/Listing versions/Running "nvm ls io" should return NA+7 added
1 #!/bin/sh23. ../../../nvm.sh45nvm ls io6[ "$?" = "3" ]7
modified:nvm.sh+1 added
539 unmodified lines
540 PATTERN='v'541 fi542 VERSIONS="$(command find $NVM_DIRS_TO_SEARCH -maxdepth 1 -type d -name "$PATTERN*" \543 | command sed "s#$(nvm_version_dir iojs)/#"$(nvm_iojs_prefix)"-#" \544 | command grep -v "$(nvm_version_dir iojs)" \545 | command sed "s#^$NVM_DIR/##" \546 | command grep -v -e '^versions$' \547 | command sed 's#^versions/##' \548 | sed -e 's/^v/node-v/' \
1017 unmodified lines