trees: fix listfile check in copy_elf()

don't check that the variable is empty

check that the file itself exists or not

this should fix the recent build issues

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-07 10:35:38 +01:00
parent 06c78e1321
commit 7aa9f22409
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ mkpayload_grub()
copy_elf()
{
[ -z "$listfile" ] && return 0
[ -f "$listfile" ] || return 0
while read -r f; do
[ -f "$cdir/$f" ] && x_ cp "$cdir/$f" "$dest_dir"