nvm_download
This file
Path
test/install_script/nvm_download
18 lines · 527 bytes
Last changed by
Not known.
History of this fileTake it
1#!/bin/sh23cleanup () {4 unset -f die cleanup5}6die () { echo "$@" ; cleanup ; exit 1; }78NVM_ENV=testing \. ../../install.sh910# nvm_download install.sh11nvm_download "https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/install.sh" >/dev/null || die "nvm_download unable to download install.sh"1213# nvm_download should fail to download wrong_install.sh14if nvm_download "https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/wrong_install.sh" &>/dev/null; then15 die "nvm_download should fail to download nonexistent file"16fi1718cleanup