mirror of https://github.com/lukechilds/nvm.git
Jordan Harband
11 years ago
5 changed files with 68 additions and 10 deletions
@ -0,0 +1,9 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
|
||||
|
die () { echo $@ ; exit 1; } |
||||
|
|
||||
|
. ../../../nvm.sh |
||||
|
|
||||
|
[ "$(nvm run 0.10.7 --version | tail -1)" = "v0.10.7" ] || die "`nvm run` failed to run with the correct version" |
||||
|
|
@ -0,0 +1,12 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
|
||||
|
die () { echo $@ ; exit 1; } |
||||
|
|
||||
|
. ../../../nvm.sh |
||||
|
|
||||
|
echo "0.10.7" > .nvmrc |
||||
|
[ "$(nvm run --version | tail -1)" = "v0.10.7" ] || die "`nvm run` failed to run with the .nvmrc version" |
||||
|
|
||||
|
[ "$(nvm run --version | head -1)" = "Found .nvmrc files with version <0.10.7>" ] || die "`nvm run` failed to print out the \"found in .nvmrc\" message" |
||||
|
|
@ -0,0 +1,9 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
. ../../../nvm.sh |
||||
|
nvm install 0.10.7 |
||||
|
|
||||
|
if [ -f ".nvmrc" ]; then |
||||
|
mv .nvmrc .nvmrc.bak |
||||
|
fi |
||||
|
|
@ -0,0 +1,11 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
. ../../../nvm.sh |
||||
|
nvm uninstall v0.10.7 |
||||
|
|
||||
|
rm .nvmrc |
||||
|
|
||||
|
if [ -f ".nvmrc.bak" ]; then |
||||
|
mv .nvmrc.bak .nvmrc |
||||
|
fi |
||||
|
|
Loading…
Reference in new issue