summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-08-10 14:13:47 +0100
committerLeah Rowe <leah@libreboot.org>2025-08-10 14:13:47 +0100
commitb31f2387ee13c243ee7bdc3e193d91fc1088d8bb (patch)
tree8537445da7039947de98e973698394f86cad0e78 /include/tree.sh
parent2c24b94d80350b11ab34ef783c3822af6b24e1c8 (diff)
tree.sh: rename hashvar to badhashvar
now the code that uses it makes a bit more sense to the casual reader. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/tree.sh')
-rw-r--r--include/tree.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 68cf0c61..0bdc44b0 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -188,7 +188,7 @@ project_up_to_date()
eval "`setvars "" old_hash hash`"
hashname="$1"
hashtype="$2"
- hashvar="$3"
+ badhashvar="$3"
shift 3
x_ mkdir -p "$XBMK_CACHE/$hashname"
@@ -203,14 +203,14 @@ project_up_to_date()
hash="$(x_ sha512sum "$xbtmp/tmp.hash" | awk '{print $1}' || \
err)" || err "$hashtype: Can't read sha512 of '$xbtmp/tmp.hash'"
- [ "$hash" != "$old_hash" ] && eval "$hashvar=\"y\""
+ [ "$hash" != "$old_hash" ] && eval "$badhashvar=\"y\""
[ -f "$XBMK_CACHE/$hashname/$project$hashtype" ] || \
- eval "$hashvar=\"y\""
+ eval "$badhashvar=\"y\""
printf "%s\n" "$hash" > "$XBMK_CACHE/$hashname/$project$hashtype" || \
err "!mk $XBMK_CACHE/$hashname/$project$hashtype"
- eval "[ \"\$$hashvar\" = \"y\" ] && return 1"; :
+ eval "[ \"\$$badhashvar\" = \"y\" ] && return 1"; :
}
check_cross_compiler()