trees: condense elfcheck() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-27 14:05:19 +01:00 committed by Leah Rowe
parent 35c516c2f4
commit 94d9d313cc
1 changed files with 2 additions and 3 deletions

View File

@ -205,9 +205,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()