2013-01-12 12:30:12 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
. ../../nvm.sh
|
|
|
|
|
2014-04-20 07:31:48 +08:00
|
|
|
VERSION=v0.10.7
|
2014-02-22 10:15:40 +08:00
|
|
|
|
2013-01-12 12:30:12 +08:00
|
|
|
# Remove the stuff we're clobbering.
|
2014-02-22 10:15:40 +08:00
|
|
|
[ -e ../../$VERSION ] && rm -R ../../$VERSION
|
2013-01-12 12:30:12 +08:00
|
|
|
|
|
|
|
# Install from binary
|
2014-02-22 10:15:40 +08:00
|
|
|
nvm install $VERSION
|
2013-01-12 12:30:12 +08:00
|
|
|
|
|
|
|
# Check
|
2014-02-22 10:15:40 +08:00
|
|
|
[ -d ../../$VERSION ]
|
|
|
|
nvm run $VERSION --version | grep $VERSION
|