0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

check checksum for macos #111

This commit is contained in:
Zack Scholl 2018-10-30 14:41:52 -07:00
parent 737049694b
commit 2b8f581ca4

4
.github/default.txt vendored
View file

@ -143,7 +143,11 @@ install_croc()
fi
echo "Verifying checksum..."
if [[ $unameu == *DARWIN* ]]; then
checksum="$(shasum -a 256 ${dl}) $croc_file"
else
checksum="$(sha256sum ${dl}) $croc_file"
fi
checksum_check="$(cat ${dl_checksum} | grep $croc_file) $croc_file"
if [[ "$s1" != "$s2" ]]; then