First off, HUGE thanks for nvm, it has helped Travis support the Node community and has been a life saver.
I was wondering if you might be able to add a small feature for us. Currently when a user tries to test against a Node version not installed an error message is displayed, but the exit code is still 0 meaning Travis doesn't know if an error occurred or not.
Could you add the feature that if nvm use fails due to the version selected not being installed that nvm returns 1?
Huge thanks for the awesome tool,
Sure, send me a pull request.
I'm on windows at the moment, so I can't test it. But I think all that's needed is to change https://github.com/creationix/nvm/blob/master/nvm.sh#L354 to return the exit value you want.
Add exit code, fix #190