summaryrefslogtreecommitdiff
path: root/src/share/ma/add_certifier
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 01:51:02 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 01:51:02 -0500
commit54d24867975e5d8673b681e511f8b8fc6210a633 (patch)
tree75c20b201542de5597bd517fe683d4e3bf94d1c4 /src/share/ma/add_certifier
parent563800612b54203d5cd68aedfd9d482215d9289d (diff)
small formatting tweaks to add_certifier function
Diffstat (limited to 'src/share/ma/add_certifier')
-rw-r--r--src/share/ma/add_certifier17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/share/ma/add_certifier b/src/share/ma/add_certifier
index 60a4f9d..e9731cc 100644
--- a/src/share/ma/add_certifier
+++ b/src/share/ma/add_certifier
@@ -27,19 +27,15 @@
add_certifier() {
-local domain
-local trust
-local depth
+local domain=
+local trust=full
+local depth=1
local keyID
+local importinfo
local fingerprint
local ltsignCommand
local trustval
-# set default values for trust depth and domain
-domain=
-trust=full
-depth=1
-
# get options
while true ; do
case "$1" in
@@ -90,7 +86,7 @@ if [ -f "$keyID" ] ; then
keyID=$(echo "$importinfo" | grep '^gpg: key ' | cut -f2 -d: | cut -f3 -d\ )
if [ -z "$keyID" ] || [ $(echo "$keyID" | wc -l) -ne 1 ] ; then
- failure "Expected there to be a single gpg key in the file."
+ failure "There was not exactly one gpg key in the file."
fi
else
# get the key from the key server
@@ -132,8 +128,7 @@ case "$trust" in
;;
esac
-# this is the gpg "script" that gpg --edit-key will execute for the
-# core to sign certifier.
+# edit-key script to ltsign key
# NOTE: *all* user IDs will be ltsigned
ltsignCommand=$(cat <<EOF
ltsign