2013-01-12 12:30:12 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
2014-09-15 08:51:34 +08:00
|
|
|
. ../../nvm.sh
|
2013-01-12 12:30:12 +08:00
|
|
|
|
2014-04-20 07:48:14 +08:00
|
|
|
NVM_TEST_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-09-15 08:51:34 +08:00
|
|
|
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
|
2013-01-12 12:30:12 +08:00
|
|
|
|
|
|
|
# Install from binary
|
2014-04-20 07:48:14 +08:00
|
|
|
nvm install $NVM_TEST_VERSION
|
2013-01-12 12:30:12 +08:00
|
|
|
|
|
|
|
# Check
|
2014-09-15 08:51:34 +08:00
|
|
|
[ -d ../../$NVM_TEST_VERSION ]
|
2014-04-20 07:48:14 +08:00
|
|
|
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION
|
|
|
|
|