trees: condense handle_makefile() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-30 13:30:35 +01:00 committed by Leah Rowe
parent 605b099e04
commit 0ab9afc7af
1 changed files with 1 additions and 2 deletions

View File

@ -230,8 +230,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" ] && \