2012-10-11 07:17:09 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2012-10-11 07:17:09 +08:00
|
|
|
|
2016-06-27 06:52:26 +08:00
|
|
|
mkdir "${NVM_DIR}/v0.0.1"
|
|
|
|
mkdir "${NVM_DIR}/v0.0.3"
|
|
|
|
mkdir "${NVM_DIR}/v0.0.9"
|
|
|
|
mkdir "${NVM_DIR}/v0.3.1"
|
|
|
|
mkdir "${NVM_DIR}/v0.3.3"
|
|
|
|
mkdir "${NVM_DIR}/v0.3.9"
|
|
|
|
mkdir -p "${NVM_DIR}/versions/node/v0.12.87"
|
|
|
|
mkdir -p "${NVM_DIR}/versions/node/v0.12.9"
|
|
|
|
mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2"
|
|
|
|
mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2"
|
2012-10-11 07:17:09 +08:00
|
|
|
|
|
|
|
# The result should contain the version numbers.
|
2015-01-13 10:16:11 +08:00
|
|
|
nvm ls | grep v0.0.1 >/dev/null &&
|
|
|
|
nvm ls | grep v0.0.3 >/dev/null &&
|
|
|
|
nvm ls | grep v0.0.9 >/dev/null &&
|
|
|
|
nvm ls | grep v0.3.1 >/dev/null &&
|
|
|
|
nvm ls | grep v0.3.3 >/dev/null &&
|
|
|
|
nvm ls | grep v0.3.9 >/dev/null &&
|
|
|
|
nvm ls | grep v0.12.87 >/dev/null &&
|
|
|
|
nvm ls | grep iojs-v0.1.2 >/dev/null
|