mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-07 21:17:53 +00:00
Clean up after existing nvm install
tests.
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
. ../../nvm.sh
|
||||
. ../../../nvm.sh
|
||||
|
||||
# Remove the stuff we're clobbering.
|
||||
[ -e ../../v0.10.7 ] && rm -R ../../v0.10.7
|
||||
[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8
|
||||
[ -e ../../../v0.10.7 ] && rm -R ../../../v0.10.7
|
||||
[ -e ../../../v0.10.8 ] && rm -R ../../../v0.10.8
|
||||
|
||||
# Install from binary
|
||||
nvm install 0.10.7
|
||||
nvm install 0.10.8
|
||||
|
||||
# Check
|
||||
[ -d ../../v0.10.7 ]
|
||||
[ -d ../../v0.10.8 ]
|
||||
[ -d ../../../v0.10.7 ]
|
||||
[ -d ../../../v0.10.8 ]
|
||||
|
||||
# Use the first one
|
||||
nvm use 0.10.7
|
||||
|
Reference in New Issue
Block a user