mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +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()
|
badcmd()
|
||||||
{
|
{
|
||||||
errmsg="no context given"
|
errmsg="Bad command"
|
||||||
[ $# -gt 0 ] && errmsg="$1"
|
[ $# -gt 0 ] && errmsg="Bad command ($1)"
|
||||||
|
|
||||||
dstr="See $projectname build system docs: ${projectsite}docs/maintain/"
|
dstr="See $projectname build system docs: ${projectsite}docs/maintain/"
|
||||||
[ -d "docs" ] && dstr="$dstr (local docs available via docs/)"
|
[ -d "docs" ] && dstr="$dstr (local docs available via docs/)"
|
||||||
$err "Bad command ($errmsg). $dstr"
|
$err "$errmsg. $dstr"
|
||||||
}
|
}
|
||||||
err_()
|
err_()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user