From 215764cfbdea013048a3bddd6a4c4dc3af756527 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 11 Jul 2024 01:14:28 +0100 Subject: [PATCH] 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 f1c0ace..a260cf2 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"