Merge pull request #376 from koenpunt/nvm-unload

Feature: nvm unload
This commit is contained in:
Jordan Harband
2014-05-28 20:53:50 -07:00
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
fail () { echo $@ ; exit 1; }
. ../../nvm.sh
type nvm > /dev/null 2>&1 || fail "NVM not loaded"
nvm unload
type nvm > /dev/null 2>&1 && fail "NVM not unloaded" || exit 0