Skip to content
Myr

nvm_download

This file

Path

test/install_script/nvm_download

18 lines · 527 bytes

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 5c12680 point at it.

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 1–18why, one step back
1#!/bin/sh
23cleanup () {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