2015-01-17 05:36:32 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-08-11 16:40:03 +08:00
|
|
|
set -ex
|
|
|
|
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2015-01-17 05:36:32 +08:00
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../nvm.sh
|
2015-01-17 05:36:32 +08:00
|
|
|
|
2015-01-17 06:09:14 +08:00
|
|
|
nvm install 0.6.21 || die 'v0.6.21 installation failed'
|
2015-01-14 09:52:18 +08:00
|
|
|
[ "_$(node -v)" = "_v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)"
|
|
|
|
[ "_$(nvm current)" = "_v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21, got $(nvm current)"
|
2015-01-17 05:36:32 +08:00
|
|
|
|