summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-07 11:20:45 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-07 11:29:36 +0100
commit0b7566cb7876500fdd4e6441c23f8cf68562ea0b (patch)
treebeda2a9d6ad371faa94417d8d16c4b989cacc62e /script
parent7aa9f2240979950f88a3e686b765499be1e10ea6 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/trees1
1 files changed, 1 insertions, 0 deletions
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
}