summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-12 12:56:05 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-12 12:58:28 +0100
commit51798278397ce0bc55648feee4e2dd7e4f12ebf0 (patch)
treec900d593d9f364ebea0cb0282ee7d450ce5c6684
parentc189257888af33a435ca483838ae44069585d227 (diff)
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 <leah@libreboot.org>
-rwxr-xr-xbuild8
1 files changed, 4 insertions, 4 deletions
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