From f5ba40200f8c1a04072084e3f67e9f90d5674608 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 22 Jul 2024 19:40:46 +0100 Subject: trees: initialise badhash no n, not empty string this is another alternative to the previous fix. this one is therefore now a pre-emptive fix, in case other code is written in the future that makes use of badhash. the badhash variable in a y/n variable, so initialise to n. Signed-off-by: Leah Rowe --- script/trees | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script/trees') diff --git a/script/trees b/script/trees index ce6da422..814d5362 100755 --- a/script/trees +++ b/script/trees @@ -12,7 +12,8 @@ set -u -e eval `setvars "" xarch srcdir premake cmakedir xlang mode makeargs elfdir cmd \ project target target_dir targets xtree _f release bootstrapargs mkhelper \ autoconfargs listfile autogenargs btype tree rev tree_depend build_depend \ - defconfig postmake mkhelpercfg dry dest_dir mdir badhash` + defconfig postmake mkhelpercfg dry dest_dir mdir` +badhash="n" main() { @@ -115,8 +116,8 @@ handle_defconfig() configure_project() { eval `setvars "" xarch xlang build_depend autoconfargs xtree postmake \ - tree_depend makeargs btype mkhelper bootstrapargs premake release \ - badhash` + tree_depend makeargs btype mkhelper bootstrapargs premake release` + badhash="n" [ -f "$1/target.cfg" ] || btype="auto" [ -f "$datadir/mkhelper.cfg" ] && eval `setcfg "$datadir/mkhelper.cfg"` -- cgit v1.2.1