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>
audit2-merge1
Leah Rowe 2024-06-07 10:35:38 +01:00 committed by Leah Rowe
parent 9168d33741
commit c88fb8c129
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,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"