Skip to content
Myr

nvm_install_with_aliased_dot

This file

Path

test/install_script/nvm_install_with_aliased_dot

24 lines · 454 bytes

Last changed by

Not known.

History of this file

Take it

1#!/bin/sh23setup() {4  # Needed to avoid to checkout the repo to the latest nvm version, losing the commits of the current PR5  unset NVM_DIR6  shopt -s expand_aliases7  alias .=':'8  NVM_ENV=testing \. ../../install.sh > /dev/null9}1011cleanup () {12  unset -f setup cleanup die13  unalias .14  shopt -u expand_aliases15}1617die () { echo "$@"; cleanup; exit 1; }1819setup2021nvm_do_install > /dev/null 2>&122command -v nvm || die 'nvm could not be loaded'2324cleanup