summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-22 03:55:04 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-22 13:46:20 +0100
commitc1527b6114e94530c50b00ff22ef03ea048e4bd1 (patch)
tree3271169681296318ccfac13c673bc499cbc4e4c0 /include/lib.sh
parentfc7ae3e5903c176584cfefd6d3cf4c1549c4eaaa (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 3e137d63..c7c0c38d 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -19,15 +19,6 @@ tmpgit="$PWD/tmp/gitclone"
grubdata="config/data/grub"
err="err_"
-badcmd()
-{
- errmsg="Bad command"
- [ $# -gt 0 ] && errmsg="Bad command ($1)"
-
- dstr="See $projectname build system docs: ${projectsite}docs/maintain/"
- [ -d "docs" ] && dstr="$dstr (local docs available via docs/)"
- $err "$errmsg. $dstr"
-}
err_()
{
printf "ERROR %s: %s\n" "$0" "$1" 1>&2
@@ -59,7 +50,7 @@ read -r projectsite < projectsite || :
install_packages()
{
- [ $# -lt 2 ] && badcmd "fewer than two arguments"
+ [ $# -lt 2 ] && $err "fewer than two arguments"
eval `setcfg "config/dependencies/$2"`
$pkg_add $pkglist || $err "Cannot install packages"