summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-27 16:43:35 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-27 16:43:35 +0100
commitc59fbb3651b18da63e6521fb902567e660a8e8a1 (patch)
treea0ee206d6be8d5f8e9221dd64b4543440a00a475
parent902b98d1acc424202107959c43fc23e2e7011a07 (diff)
trees: simplify single/multi handling in main()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/trees3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/trees b/script/trees
index 97bc03bb..3da74fe9 100755
--- a/script/trees
+++ b/script/trees
@@ -46,8 +46,7 @@ main()
remkdir "${tmpgit%/*}"
- _cmd="build_project"
- singletree "$project" || _cmd="build_targets"
+ _cmd="build_targets" && singletree "$project" && _cmd="build_project"
$_cmd $@
[ "$target1" = "utils" ] && [ "$project" = "coreboot" ] && return 0