trees: simplify copy_elf()

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-15 23:01:45 +01:00 committed by Leah Rowe
parent 293777fb99
commit ed921d7890
1 changed files with 1 additions and 5 deletions

View File

@ -291,11 +291,7 @@ mkpayload_grub()
copy_elf()
{
[ -f "$listfile" ] || return 0
x_ mkdir -p "$dest_dir"
while read -r f; do
[ -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"