lib/lib.sh, bin/make-cert: Fix usage message handling.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Dec 2015 21:22:23 +0000 (21:22 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 22 Dec 2015 21:22:23 +0000 (21:22 +0000)
Make the separating space be the script's responsibility.  Actually
include a usage message in `make-cert'.

bin/make-cert
lib/lib.sh

index 8c5605b..97c946f 100755 (executable)
@@ -1,5 +1,6 @@
 #! /bin/sh
 set -e
+usage=" TAG"
 . "${0%/*}/../config.sh"
 . "$home/lib/lib.sh"
 
index 7c80b68..467f1ca 100644 (file)
@@ -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; }