From: Mark Wooding Date: Wed, 2 Jan 2013 19:44:26 +0000 (+0000) Subject: Merge branch 'master' of git://git.distorted.org.uk/~mdw/ca X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ca/commitdiff_plain/e6781005493d24150cde168caec3461467339d76?hp=0f9d9bad47d069fb05f3f1d937c42125a14c95ea Merge branch 'master' of git://git.distorted.org.uk/~mdw/ca * 'master' of git://git.distorted.org.uk/~mdw/ca: bin/withdraw: Lowercase `u' in `usage:', for consistency. bin/withdraw: Make sure the database is actually open. --- diff --git a/bin/withdraw b/bin/withdraw index ed6e740..4f67086 100755 --- a/bin/withdraw +++ b/bin/withdraw @@ -25,9 +25,14 @@ ## Find the common utilities. source [file join [file dirname $argv0] "../lib/func.tcl"] +## Open the database +sqlite3 db "$CERTROOT/state/ca.db" +db nullvalue nil +cd "$CERTROOT" + ## Get the list of requests. if {[llength $argv] != 1} { - puts stderr "Usage: $QUIS REQID" + puts stderr "usage: $QUIS REQID" exit 1 } lassign $argv reqid