win_installer: fetch and verify notifu using bash (fix typo)

This commit is contained in:
Eric Le Lay 2018-07-28 22:30:24 +02:00
parent ba3f4084b3
commit 039c13bc8b
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ set -e
src=notifu-src-1.6.1.zip
wget https://www.paralint.com/projects/notifu/dl/$src
checksum=$(sha256sum $src | cut -d " " -f0)
if [ "$checksum" -ne "0fdcd08d3e12d87af76cdaafbf1278c4fcf1baf5d6447cce1a676b8d78a4d8c3" ]; then
checksum=$(sha256sum $src | cut -d " " -f1)
if [ "$checksum" = "0fdcd08d3e12d87af76cdaafbf1278c4fcf1baf5d6447cce1a676b8d78a4d8c3" ]; then
echo "$src checksum OK"
else
echo "$src checksum KO: got $checksum"