From 93005620045f6d95792ad8eb8e717be47bda82e1 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 22 Dec 2015 21:22:23 +0000 Subject: [PATCH] lib/lib.sh, bin/make-cert: Fix usage message handling. Make the separating space be the script's responsibility. Actually include a usage message in `make-cert'. --- bin/make-cert | 1 + lib/lib.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/make-cert b/bin/make-cert index 8c5605b..97c946f 100755 --- a/bin/make-cert +++ b/bin/make-cert @@ -1,5 +1,6 @@ #! /bin/sh set -e +usage=" TAG" . "${0%/*}/../config.sh" . "$home/lib/lib.sh" diff --git a/lib/lib.sh b/lib/lib.sh index 7c80b68..467f1ca 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -2,7 +2,7 @@ prog=${0##*/} -usage () { echo "usage: $prog $usage"; } +usage () { echo "usage: $prog$usage"; } fail () { echo >&2 "$prog: $*"; exit 1; } fail_usage () { usage >&2; exit 1; } -- 2.11.0