dot-files/test/fast/Running "nvm unload" should unset all function and variables.
Buddy Sandidge 02f77ff801 Squashed 'nvm/' content from commit 21c372795
git-subtree-dir: nvm
git-subtree-split: 21c37279556a0576a411ca01124487784105d4b4
2016-02-03 20:44:00 -08:00

13 lines
186 B
Bash
Executable File

#!/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