summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 13:30:35 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 13:30:35 +0100
commit5639481419cfe2380df8a1dc326777753bef882a (patch)
tree63b54629d7240c60bb1145d3581bb457979bb910
parent1ec9fc336804aaf70eecd64763a87a7478ab03d6 (diff)
trees: condense handle_makefile() a bit
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 9c1531a2..869b5714 100755
--- a/script/trees
+++ b/script/trees
@@ -232,8 +232,7 @@ handle_makefile()
run_make_command || $err "handle_makefile $cdir: no makefile!"
- _copy=".config"
- [ "$mode" = "savedefconfig" ] && _copy="defconfig"
+ _copy=".config" && [ "$mode" = "savedefconfig" ] && _copy="defconfig"
[ "${mode%config}" = "$mode" ] || x_ cp "$cdir/$_copy" "$config"
[ -e "$cdir/.git" ] && [ "$project" = "u-boot" ] && \