trees: condense copy_elf() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-30 15:39:41 +01:00
parent d5928c9ba8
commit 88f741db92
1 changed files with 1 additions and 2 deletions

View File

@ -297,8 +297,7 @@ copy_elf()
{
[ -f "$listfile" ] && x_ mkdir -p "$dest_dir" && while read -r f; do
[ -f "$cdir/$f" ] && x_ cp "$cdir/$f" "$dest_dir"
done < "$listfile"
x_ make clean -C "$cdir"
done < "$listfile"; x_ make clean -C "$cdir"
}
main $@