From 144b3c93a4d84d3095e1e0def1464025fff27976 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 27 Jun 2024 14:05:19 +0100 Subject: trees: condense elfcheck() a bit Signed-off-by: Leah Rowe --- script/trees | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/trees b/script/trees index a3e33f13..13c818ab 100755 --- a/script/trees +++ b/script/trees @@ -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() -- cgit v1.2.1