summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/tree.sh')
-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()