HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux srv820.techno-vate.net 4.18.0-553.109.1.el8_10.x86_64 #1 SMP Mon Mar 2 09:33:18 EST 2026 x86_64
User: bheot (1024)
PHP: 8.1.30
Disabled: NONE
Upload Files
File: //opt/nvm/test/install_script/nvm_install_with_aliased_dot
#!/bin/sh

setup () {
  shopt -s expand_aliases
  alias .=':'
  NVM_ENV=testing \. ../../install.sh > /dev/null
}

cleanup () {
  unset -f setup cleanup die
  unalias .
  shopt -u expand_aliases
}

die () { echo "$@"; exit 1; }

setup

nvm_do_install > /dev/null 2>&1
command -v nvm || die 'nvm could not be loaded'

cleanup