projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more moving to subfunctions, and rename of show-key
[monkeysphere.git]
/
src
/
subcommands
/
mh
/
add-hostname
diff --git
a/src/subcommands/mh/add-hostname
b/src/subcommands/mh/add-hostname
index fc1ae9665ec76745ffed24900e72bea31e8e12fb..591f52ee4a90d987e2a590df134c0cfb22bd4b45 100755
(executable)
--- a/
src/subcommands/mh/add-hostname
+++ b/
src/subcommands/mh/add-hostname
@@
-12,6
+12,8
@@
# add hostname user ID to server key
# add hostname user ID to server key
+add_hostname() {
+
local userID
local fingerprint
local tmpuidMatch
local userID
local fingerprint
local tmpuidMatch
@@
-58,10
+60,7
@@
EOF
if echo "$adduidCommand" | \
gpg_host --quiet --command-fd 0 --edit-key "0x${fingerprint}!" ; then
if echo "$adduidCommand" | \
gpg_host --quiet --command-fd 0 --edit-key "0x${fingerprint}!" ; then
- # update the trustdb for the authentication keyring
- gpg_authentication "--check-trustdb"
-
- show_server_key
+ show_key
echo
echo "NOTE: User ID added to key, but key not published."
echo
echo "NOTE: User ID added to key, but key not published."
@@
-69,3
+68,5
@@
if echo "$adduidCommand" | \
else
failure "Problem adding user ID."
fi
else
failure "Problem adding user ID."
fi
+
+}