Clean up after existing nvm install tests.

This commit is contained in:
Jordan Harband
2014-04-19 16:48:14 -07:00
parent 55a6f1f06e
commit eb6031cb58
5 changed files with 38 additions and 17 deletions

View File

@@ -1,16 +1,17 @@
#!/bin/sh
set -e
. ../../nvm.sh
. ../../../nvm.sh
VERSION=v0.10.7
NVM_TEST_VERSION=v0.10.7
# Remove the stuff we're clobbering.
[ -e ../../$VERSION ] && rm -R ../../$VERSION
[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION
# Install from source
nvm install -s $VERSION
nvm install -s $NVM_TEST_VERSION
# Check
[ -d ../../$VERSION ]
nvm run $VERSION --version | grep $VERSION
[ -d ../../../$NVM_TEST_VERSION ]
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION