summaryrefslogtreecommitdiff
path: root/include/tree.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/tree.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/tree.sh')
-rw-r--r--include/tree.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 2b6c4b7f..254f738d 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -442,11 +442,13 @@ project_up_to_date()
"$@"
fi
- fx_ "x_ sha512sum" find "$@" -type f -not -path "*/.git*/*" | awk \
- '{print $1}' > "$xbtmp/tmp.hash" || err "!h $project $hashdir" \
+ build_sbase
+ fx_ "x_ util/sbase/sha512sum" find "$@" -type f -not -path \
+ "*/.git*/*" | awk '{print $1}' > "$xbtmp/tmp.hash" || \
+ err "!h $project $hashdir" \
"project_up_to_date" "$hashdir" "$hashname" "$badhashvar" "$@"
- hash="$(x_ sha512sum "$xbtmp/tmp.hash" | awk '{print $1}' || \
+ hash="$(x_ "$sha512sum" "$xbtmp/tmp.hash" | awk '{print $1}' || \
err)" || err "$hashname: Can't read sha512 of '$xbtmp/tmp.hash'" \
"project_up_to_date" "$hashdir" "$hashname" "$badhashvar" "$@"