From 51798278397ce0bc55648feee4e2dd7e4f12ebf0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 12 Apr 2025 12:56:05 +0100 Subject: build: make coreboot building an else in "roms" Otherwise, the current return prevents set -u -e after the case/switch block, which is a problem if set +u +e was done at any point before the return. Remove the return in the roms) section of the case/switch block, and make the building of coreboot images part of an else clause. Signed-off-by: Leah Rowe --- build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build') diff --git a/build b/build index f61018c6..809db781 100755 --- a/build +++ b/build @@ -47,10 +47,10 @@ main() roms) if [ $# -gt 1 ] && [ "$2" = "serprog" ]; then mk -b stm32-vserprog pico-serprog - return 0 - fi - shift 1 - x_ ./mk -b coreboot "$@" ;; + else + shift 1 + x_ ./mk -b coreboot "$@" + fi ;; *) [ -f "$spath" ] || $err "bad command" $shcmd -- cgit v1.2.1