summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-27 12:17:06 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-27 12:17:06 +0100
commitf8444a879594d498a6304ca7e22f7971ecc5830b (patch)
treee2e5470eef0d3d239370cf233bb3aa3af2b15bb7
parentaacd46bf812369710a0080b7e51f1a1c7d1ce9ee (diff)
tree.sh: simplify build_project()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/tree.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/tree.sh b/include/tree.sh
index e8f55c48..86779733 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -74,9 +74,7 @@ build_project()
[ ! -f "$listfile" ] || $dry elfcheck || return 0
[ "$mode" = "distclean" ] && mode="clean"
- run_make_command || return 0
-
- [ -n "$mode" ] || $dry copy_elf; :
+ run_make_command && [ -z "$mode" ] && $dry copy_elf; :
}
build_targets()