mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 08:20:59 +02:00
scripts: avoid relying on spaces from sha1sum output
This commit is contained in:
committed by
Leah Rowe
parent
7c5334ca0e
commit
ec082429ab
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user