summaryrefslogtreecommitdiff
path: root/src/share/mh/add_name
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-01-18 18:22:22 -0500
committerJameson Rollins <jrollins@finestructure.net>2010-01-18 18:22:22 -0500
commit638a70f020f4ccda3deb15e5c697d384e0f705d7 (patch)
tree08ec40f7360a3087ba33e4fa3a2374dc792d396a /src/share/mh/add_name
parentd1f2eb3152412b62d17f15db519efa38a9bd6710 (diff)
add prompt if a service name is already being used then importing a key or adding a name.
This can be overridden with the MONKEYSPHERE_PROMPT var.
Diffstat (limited to 'src/share/mh/add_name')
-rw-r--r--src/share/mh/add_name3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/share/mh/add_name b/src/share/mh/add_name
index 0eeefb7..754ced4 100644
--- a/src/share/mh/add_name
+++ b/src/share/mh/add_name
@@ -34,6 +34,9 @@ keyID=$(check_key_input "$@")
check_key_userid "$keyID" "$serviceName" && \
failure "Service name '$serviceName' already exists on key '$keyID'."
+# test that a key with that user ID does not already exist
+prompt_userid_exists "$serviceName"
+
check_service_name "$serviceName"
if [ "$PROMPT" = "true" ] ; then