2014-07-15 02:38:26 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2014-07-15 02:38:26 +08:00
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2018-06-14 01:38:19 +08:00
|
|
|
\. ../../common.sh
|
2014-07-15 02:38:26 +08:00
|
|
|
|
2018-06-14 01:38:19 +08:00
|
|
|
make_fake_node v0.0.1
|
|
|
|
make_fake_node v0.0.3
|
|
|
|
make_fake_node v0.0.9
|
|
|
|
make_fake_node v0.3.1
|
|
|
|
make_fake_node v0.3.3
|
|
|
|
make_fake_node v0.3.9
|
2014-07-15 02:38:26 +08:00
|
|
|
|
|
|
|
nvm_has_system_node() { return 0; }
|
|
|
|
nvm ls | grep system 2>&1 > /dev/null
|
|
|
|
[ $? -eq 0 ] || die '"nvm ls" did not contain "system" when system node is present'
|
|
|
|
|
|
|
|
nvm_has_system_node() { return 1; }
|
|
|
|
nvm ls | grep system 2>&1 > /dev/null
|
|
|
|
[ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present'
|