1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2025-10-12 12:06:20 +08:00
nvm/test/fast/Unit tests/nvm_get_checksum_alg
2016-08-09 22:24:09 -07:00

19 lines
243 B
Bash
Executable File

#!/bin/sh
set -ex
die () { echo $@ ; exit 1; }
. ../../../nvm.sh
ALG="$(nvm_get_checksum_alg)"
case "$ALG" in
'sha-256' | 'sha-1')
echo 'sha-256 or sha-1 found'
;;
*)
die "sha-256 or sha-1 not found: found ${ALG}"
;;
esac