trees: don't check empty path in copy_elf()

it could lead to some whackiness later on

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-07 12:04:28 +01:00 committed by Leah Rowe
parent c1176bbd28
commit 8d5edd4f06
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ mkpayload_grub()
copy_elf() copy_elf()
{ {
[ -n "$listfile" ] || return 0
[ -f "$listfile" ] || return 0 [ -f "$listfile" ] || return 0
while read -r f; do while read -r f; do