From c1527b6114e94530c50b00ff22ef03ea048e4bd1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 22 Jun 2024 03:55:04 +0100 Subject: lib.sh: remove badcmd() it's bloat. telling the user to rtfm is something that we already do on irc; they will still ask how to do everything, and ignore the message from badcmd(), or they will automatically know to rtfm. i'm on a massive purge, removing bloat from lbmk as part of Libreboot Build System Audit 6. all bloat must go. Signed-off-by: Leah Rowe --- script/roms | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'script/roms') diff --git a/script/roms b/script/roms index 5cd8b66b..7b6f8685 100755 --- a/script/roms +++ b/script/roms @@ -33,8 +33,9 @@ main() { while [ $# -gt 0 ]; do if [ "$1" = "serprog" ]; then - [ $# -lt 2 ] && badcmd "serprog type not set" - [ "$2" != "rp2040" ] && [ "$2" != "stm32" ] && badcmd + [ $# -lt 2 ] && $err "serprog type not set" + [ "$2" != "rp2040" ] && [ "$2" != "stm32" ] && \ + $err "invalid serprog type" eval "x_ ./update trees -f \"\${${2}src##*/}\"" ser="$2" && shift 2 && continue fi -- cgit v1.2.1