From c88fb8c12921317a1d98bb4730c0b07c3178a274 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 7 Jun 2024 10:35:38 +0100 Subject: [PATCH] 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 --- script/trees | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/trees b/script/trees index 8bf0369..443c670 100755 --- a/script/trees +++ b/script/trees @@ -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"