summaryrefslogtreecommitdiff
path: root/resources/scripts/blobs
diff options
context:
space:
mode:
authorAlexei Sorokin <sor.alexei@meowr.ru>2022-11-29 23:00:51 +0300
committerLeah Rowe <leah@libreboot.org>2022-11-29 20:26:35 +0000
commitec082429ab35a45d8a362703c26932206b5b1747 (patch)
tree185414f3151dcceef6c2442e2ebb1045a71f2a01 /resources/scripts/blobs
parent7c5334ca0e65d4e0df377b1e6e07b18e6dbe6af2 (diff)
scripts: avoid relying on spaces from sha1sum output
Diffstat (limited to 'resources/scripts/blobs')
-rwxr-xr-xresources/scripts/blobs/download2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/scripts/blobs/download b/resources/scripts/blobs/download
index e8e82448..d8933573 100755
--- a/resources/scripts/blobs/download
+++ b/resources/scripts/blobs/download
@@ -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