From b31f2387ee13c243ee7bdc3e193d91fc1088d8bb Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 10 Aug 2025 14:13:47 +0100 Subject: 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 --- include/tree.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/tree.sh') 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() -- cgit v1.2.1