HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/ubuntu/.nvm/test/fast/Unit tests/nvm_has_system_iojs
#!/bin/sh

cleanup () {
  rm -rf "${NVM_DIR}/versions/io.js/v0.1.2"
}
die () { echo "$@" ; exit 1; }

\. ../../../nvm.sh
\. ../../common.sh

make_fake_iojs v0.1.2

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