summaryrefslogtreecommitdiff
path: root/include/init.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/init.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/init.sh')
-rw-r--r--include/init.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh
index 0fd758c2..72af26c3 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -35,11 +35,14 @@ checkvarschk=""
is_child=""
basetmp=""
+sha512sum="util/sbase/sha512sum"
+
xbmk_init()
{
xbmkpwd="`pwd || err "Cannot generate PWD"`" || err "!" xbmk_init "$@"
xbmklock="$xbmkpwd/lock"
basetmp="$xbmkpwd/xbmkwd"
+ sha512sum="$xbmkpwd/util/sbase/sha512sum"
if [ $# -gt 0 ] && [ "$1" = "dependencies" ]; then
x_ xbmkpkg "$@"