2014-08-20 15:42:50 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
die () { echo $@ ; exit 1; }
|
|
|
|
|
|
|
|
. ../../../nvm.sh
|
|
|
|
|
2016-06-27 06:52:26 +08:00
|
|
|
mkdir -p "${NVM_DIR}/versions/node/v0.12.1"
|
|
|
|
mkdir "${NVM_DIR}/v0.1.3"
|
|
|
|
|
2014-08-20 15:42:50 +08:00
|
|
|
nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory'
|
|
|
|
nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'
|