2015-01-19 10:55:48 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cleanup () {
|
2018-06-14 01:38:19 +08:00
|
|
|
rm -rf "${NVM_DIR}/versions/io.js/v0.1.2"
|
2015-01-19 10:55:48 +08:00
|
|
|
}
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2015-01-19 10:55:48 +08:00
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2018-06-14 01:38:19 +08:00
|
|
|
\. ../../common.sh
|
2015-01-19 10:55:48 +08:00
|
|
|
|
2018-06-14 01:38:19 +08:00
|
|
|
make_fake_iojs v0.1.2
|
2015-01-19 10:55:48 +08:00
|
|
|
|
|
|
|
nvm use iojs-v0.1.2
|
|
|
|
|
|
|
|
if command -v iojs; then
|
|
|
|
nvm_has_system_iojs
|
|
|
|
else
|
|
|
|
! nvm_has_system_iojs
|
|
|
|
fi
|
|
|
|
|
|
|
|
nvm deactivate /dev/null 2>&1
|
|
|
|
|
|
|
|
if command -v iojs; then
|
|
|
|
nvm_has_system_iojs
|
|
|
|
else
|
|
|
|
! nvm_has_system_iojs
|
|
|
|
fi
|