build/roms: don't use exit status from skip_board

the printf could potentially return non-zero, which might
make the script not skip a given target

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-05 05:18:12 +01:00 committed by Leah Rowe
parent 0ada63b629
commit 1c84d0fc9d
1 changed files with 5 additions and 3 deletions

View File

@ -95,9 +95,11 @@ handle_target()
print_target_name && return 0 print_target_name && return 0
# exclude certain targets from the release # exclude certain targets from the release
skip_board && \ if skip_board; then
printf "Skip target %s(%s)\n" "$board" "$status" && \ printf "Skip target %s(%s)\n" "$board" "$status"
skipped="* $board($status)\n$skipped" && return 0 skipped="* $board($status)\n$skipped"
return 0
fi
build_payloads build_payloads
build_target_mainboard build_target_mainboard