From 580a5559480153f4b3e1983ccdce8e5a2c82c68d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 5 May 2024 05:18:12 +0100 Subject: 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 --- script/build/roms | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/build/roms b/script/build/roms index 3d5a3f5c..81ecd879 100755 --- a/script/build/roms +++ b/script/build/roms @@ -95,9 +95,11 @@ handle_target() print_target_name && return 0 # exclude certain targets from the release - skip_board && \ - printf "Skip target %s(%s)\n" "$board" "$status" && \ - skipped="* $board($status)\n$skipped" && return 0 + if skip_board; then + printf "Skip target %s(%s)\n" "$board" "$status" + skipped="* $board($status)\n$skipped" + return 0 + fi build_payloads build_target_mainboard -- cgit v1.2.1