2014-09-05 15:10:51 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-09-16 23:59:00 +08:00
|
|
|
die () { echo $@ ; exit 1; }
|
2014-09-05 15:10:51 +08:00
|
|
|
|
|
|
|
. ../../../nvm.sh
|
|
|
|
|
|
|
|
mkdir -p ../../../v0.0.1
|
|
|
|
mkdir -p ../../../v0.0.3
|
|
|
|
mkdir -p ../../../v0.0.9
|
|
|
|
mkdir -p ../../../v0.3.1
|
|
|
|
mkdir -p ../../../v0.3.3
|
|
|
|
mkdir -p ../../../v0.3.9
|
|
|
|
|
|
|
|
nvm_has_system_node() { return 0; }
|
|
|
|
nvm ls system | grep system 2>&1 > /dev/null
|
|
|
|
[ $? -eq 0 ] || die '"nvm ls system" did not contain "system" when system node is present'
|
|
|
|
|
|
|
|
nvm_has_system_node() { return 1; }
|
|
|
|
nvm ls system | grep system 2>&1 > /dev/null
|
|
|
|
[ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present'
|