summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-22 19:40:46 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-22 19:40:46 +0100
commitf5ba40200f8c1a04072084e3f67e9f90d5674608 (patch)
treecd005cdab75974cfc23f1d61ed5491e563bb5c9b /script/trees
parentfaefcdf3df382bf0b7f0a1a6c6531406fb652d46 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees7
1 files changed, 4 insertions, 3 deletions
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"`