From 5639481419cfe2380df8a1dc326777753bef882a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 30 Jun 2024 13:30:35 +0100 Subject: trees: condense handle_makefile() a bit Signed-off-by: Leah Rowe --- script/trees | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script/trees') 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" ] && \ -- cgit v1.2.1