2013-01-12 12:30:12 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
. ../../nvm.sh
|
|
|
|
|
2014-02-22 10:15:40 +08:00
|
|
|
VERSION=v0.10.26
|
|
|
|
|
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 source
|
2014-02-22 10:15:40 +08:00
|
|
|
nvm install -s $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
|