From 090cf7ad541d181385d1b1a80c669af68ff22c8b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 11 Jul 2024 01:14:28 +0100 Subject: trees: fix bad comparison in configure_project() we used to set cmd only to these values: build_project build_targets however, now we set them to: build_project build_targets $@ the latter cannot be measured reliably, but we were checking whether cmd equalled: build_targets now we instead check that it does not equal: build_project Signed-off-by: Leah Rowe --- script/trees | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/trees b/script/trees index f1c0acef..a260cf24 100755 --- a/script/trees +++ b/script/trees @@ -122,7 +122,7 @@ configure_project() [ -f "$datadir/mkhelper.cfg" ] && eval `setcfg "$datadir/mkhelper.cfg"` _tcfg="$1/target.cfg" - while [ -f "$_tcfg" ] || [ "$cmd" = "build_targets" ]; do + while [ -f "$_tcfg" ] || [ "$cmd" != "build_project" ]; do eval `setvars "" rev tree` printf "Loading %s config: %s\n" "$project" "$_tcfg" -- cgit v1.2.1