summaryrefslogtreecommitdiff
path: root/include/get.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-04 09:56:42 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-04 09:58:24 +0100
commit8969cc734f8f9855fa4bbfa92c18224adb9e5ddc (patch)
treecde221495640dfb1d782333e7311dd15b809cdd1 /include/get.sh
parente9a910b33c7837b4b868e3abda18eb4810df7f02 (diff)
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>
Diffstat (limited to 'include/get.sh')
-rw-r--r--include/get.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/get.sh b/include/get.sh
index a0f7fb20..3c30b6d3 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -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