scripts: avoid relying on spaces from sha1sum output

This commit is contained in:
Alexei Sorokin
2022-11-29 23:00:51 +03:00
committed by Leah Rowe
parent 7c5334ca0e
commit ec082429ab
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ Extract_me(){
curl ${me_dl} > blobs/me.exe || curl ${me_dl_bkup} > blobs/me.exe
if [ ! "$(sha1sum blobs/me.exe)" = "${me_hash} blobs/me.exe" ]; then
if [ "$(sha1sum blobs/me.exe | awk '{print $1}')" != "${me_hash}" ]; then
printf 'checksum of downloaded me did not mactch\ncorrupted me downloaded or wrong me for board\n'
rm blobs/me.exe
return 1