Skip to content
Myr

fix to proper echo of nvm which. Checkin test which had been left out

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

authored by Daniel Bretoi · committed by Daniel Bretoi · parent 234b925 · Browse files · 2 files+7 added−1 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+7 added−1 removed

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

2 files+7 added−1 removed

added:test/fast/Listing paths/Running "nvm which foo" should return a nonzero exit code when not found+6 added
1 #!/bin/sh23. ../../../nvm.sh45nvm which nonexistent_version6[ "$?" = "1" ]
modified:nvm.sh+1 added-1 removed
966 unmodified lines
967 fi968969 if [ "_$VERSION" = '_system' ]; then970 if nvm_has_system_node >/dev/null 2>&1; then971 echo $(dirname `which node`)971 echo $(nvm use system && echo dirname $(which node))972 return973 else974 echo "System version of node not found." >&2975 return 127
123 unmodified lines