summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-03 08:26:04 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-03 08:26:04 +0100
commitc2793e7a5ea931a77e119e593204a79c06870e53 (patch)
treec2b5f01752e6161479eaf7567c320cb2a622b39c
parent49ae4f91f98f0c118c6666e7132a14b889181bbc (diff)
badcmd: don't print "no context given"
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/lib.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 68e36021..5ae34818 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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_()
{