![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/.nvm/test/fast/Unit tests/ |
#!/bin/sh set -ex die () { echo "$@" ; exit 1; } unset NVM_NODEJS_ORG_MIRROR unset NVM_IOJS_ORG_MIRROR set +e # TODO: fix \. ../../../nvm.sh set -e ! nvm_get_mirror || die 'unknown release type did not error' ! nvm_get_mirror node || die 'unknown release type did not error' ! nvm_get_mirror iojs || die 'unknown release type did not error' ! nvm_get_mirror node foo || die 'unknown release type did not error' ! nvm_get_mirror iojs foo || die 'unknown release type did not error' [ -z "$NVM_NODEJS_ORG_MIRROR" ] || die "MIRROR environment variables should not be exported" [ -z "$NVM_IOJS_ORG_MIRROR" ] || die "MIRROR environment variables should not be exported" [ "$(nvm_get_mirror node std)" = "https://nodejs.org/dist" ] || die "incorrect default node-std mirror" [ "$(nvm_get_mirror iojs std)" = "https://iojs.org/dist" ] || die "incorrect default iojs-std mirror" NVM_NODEJS_ORG_MIRROR="test://domain" [ "$(nvm_get_mirror node std)" = "test://domain" ] || die "node-std mirror should respect NVM_NODEJS_ORG_MIRROR" unset NVM_NODEJS_ORG_MIRROR NVM_IOJS_ORG_MIRROR="test://domain" [ "$(nvm_get_mirror iojs std)" = "test://domain" ] || die "iojs-std mirror should respect NVM_IOJS_ORG_MIRROR" unset NVM_IOJS_ORG_MIRROR