mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
badcmd: don't print "no context given"
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-3
@@ -17,12 +17,12 @@ err="err_"
|
||||
|
||||
badcmd()
|
||||
{
|
||||
errmsg="no context given"
|
||||
[ $# -gt 0 ] && errmsg="$1"
|
||||
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 "Bad command ($errmsg). $dstr"
|
||||
$err "$errmsg. $dstr"
|
||||
}
|
||||
err_()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user