From 0b7566cb7876500fdd4e6441c23f8cf68562ea0b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 7 Jun 2024 11:20:45 +0100 Subject: trees: fix build issue caused by bad elf check we're not checking for bad elfs, but the check itself was bad due to a quirk in how sh works. really, really obscure bug. fixed now! if the given directory didn't actually exist, or there were no files in it, it'd be searching for the file named "*" which is obviously wrong Signed-off-by: Leah Rowe --- script/trees | 1 + 1 file changed, 1 insertion(+) (limited to 'script/trees') diff --git a/script/trees b/script/trees index 98bef371..48e2b6fa 100755 --- a/script/trees +++ b/script/trees @@ -204,6 +204,7 @@ elfcheck() { # TODO: very hacky check. do it properly (based on build.list) for elftest in "$dest_dir"/*; do + [ -e "$elftest" ] || continue e "$elftest" f && return 1 done } -- cgit v1.2.1