1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2025-10-13 04:25:50 +08:00
nvm/test/fast/Running "nvm current" should display current nvm environment.

11 lines
218 B
Bash
Executable File

#!/bin/sh
die () { echo $@ ; exit 1; }
. ../../nvm.sh
nvm deactivate 2>&1
[ "$(nvm current)" = "system" ] || [ "$(nvm current)" = "none" ] || die '"nvm current" did not report "system" or "none" when deactivated'