If nvm is deactivated, display "none" or "system" instead of the system node version

This commit is contained in:
Jordan Harband committed 2014-07-21 02:03:18 -07:00
1 parent 6e02e5a54c
commit 9912f7cc46
2 files changed
+14 -2

No files matched your search

@@ -3,4 +3,8 @@
die () { echo $@ ; exit 1; }
. ../../nvm.sh
[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version"
nvm deactivate 2>&1
[ "$(nvm current)" = "system" ] || [ "$(nvm current)" = "none" ] || die '"nvm current" did not report "system" or "none" when deactivated'