trees: condense elfcheck() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-27 14:05:19 +01:00
parent 7b8c2bd412
commit 144b3c93a4
1 changed files with 2 additions and 3 deletions

View File

@ -207,9 +207,8 @@ 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
[ -e "$elftest" ] && e "$elftest" f && return 1
done; return 0
}
handle_makefile()