Sign in
cobalt
/
third_party
/
nvm
/
refs/tags/v0.33.1
/
.
/
test
/
fast
/
Unit tests
/
nvm_get_checksum_alg
blob: 6a68e8c43a785942629427484b6fdcfe4d63c3d2 [
file
] [
log
] [
blame
]
#!/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