2014-02-26 15:43:12 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
2014-04-20 07:48:14 +08:00
|
|
|
. ../../../nvm.sh
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Remove the stuff we're clobbering.
|
2014-04-20 07:48:14 +08:00
|
|
|
[ -e ../../../v0.10.7 ] && rm -R ../../../v0.10.7
|
|
|
|
[ -e ../../../v0.10.8 ] && rm -R ../../../v0.10.8
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Install from binary
|
2014-04-20 07:31:48 +08:00
|
|
|
nvm install 0.10.7
|
|
|
|
nvm install 0.10.8
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Check
|
2014-04-20 07:48:14 +08:00
|
|
|
[ -d ../../../v0.10.7 ]
|
|
|
|
[ -d ../../../v0.10.8 ]
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Use the first one
|
2014-04-20 07:31:48 +08:00
|
|
|
nvm use 0.10.7
|
2014-02-26 15:43:12 +08:00
|
|
|
|
|
|
|
# Use the latest one
|
|
|
|
nvm use 0.10
|
2014-04-20 07:31:48 +08:00
|
|
|
node --version | grep v0.10.8
|
|
|
|
|