Skip to content
Myr

nvm_get_checksum_binary

This file

Path

test/fast/Unit tests/nvm_get_checksum_binary

21 lines · 408 bytes

Last changed by

[Tests] set `$_` before sourcing `nvm.sh` in fast testsJordan Harbandbefore adoptionc451e7a

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–7why, one step back
1#!/bin/sh
23set -ex45die () { echo "$@" ; exit 1; }67set +e # TODO: fix

[Tests] set `$_` before sourcing `nvm.sh` in fast testsJordan Harbandbefore adoptionc451e7a

line 8why, one step back
8: nvm.sh

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

lines 9–21why, one step back
9\. ../../../nvm.sh
10set -e1112BIN="$(nvm_get_checksum_binary)"1314case "${BIN-}" in15 sha256sum | shasum | sha256 | gsha256sum | openssl | bssl | sha1sum | sha1 | shasum)16 echo "${BIN} found"17 ;;18 *)19 die "sha256sum | shasum | sha256 | gsha256sum | openssl | bssl | sha1sum | sha1 | shasum not found: found ${BIN}"20 ;;21esac