mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
xbmk: use sbase sha512sum, not host sha512sum
the --status flag seems to be a GNUism as stated in the previous commit, i import sbase suckless now, so as to have a consistent implementation of sha512sum. this ensures that its output is reliable, when i'm using the output of this command within backticks. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-1
@@ -313,7 +313,8 @@ bad_checksum()
|
||||
return 0
|
||||
fi
|
||||
|
||||
csum="$(x_ sha512sum "$2" | awk '{print $1}')" || \
|
||||
build_sbase
|
||||
csum="$(x_ "$sha512sum" "$2" | awk '{print $1}')" || \
|
||||
err "!sha512 '$2' $1" bad_checksum "$@"
|
||||
|
||||
if [ "$csum" = "$1" ]; then
|
||||
|
||||
Reference in New Issue
Block a user