2014-07-21 14:41:11 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
die () { echo $@ ; exit 1; }
|
|
|
|
|
|
|
|
. ../../nvm.sh
|
|
|
|
|
|
|
|
nvm install 0.10
|
|
|
|
|
|
|
|
[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\""
|
|
|
|
|
2014-08-27 14:53:17 +08:00
|
|
|
nvm install 0.6.21
|
|
|
|
[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21"
|
|
|
|
[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21"
|
|
|
|
|