Make sure nvm ls foo returns a nonzero exit code when a version is not found.

Fixes #440.
This commit is contained in:
Jordan Harband
2014-06-22 11:33:26 -07:00
parent bb250b5730
commit 8349f0ff48
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/sh
. ../../nvm.sh
nvm ls nonexistent_version
[ "$?" = "3" ]