summaryrefslogtreecommitdiff
path: root/src/share/mh/import_key
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/import_key
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/import_key')
-rw-r--r--src/share/mh/import_key3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key
index 1b6f267..0f362b8 100644
--- a/src/share/mh/import_key
+++ b/src/share/mh/import_key
@@ -27,8 +27,7 @@ if [ -z "$serviceName" ] ; then
fi
# test that a key with that user ID does not already exist
-check_key_userid "$serviceName" "$serviceName" && \
- failure "A key with service name '$serviceName' already exists."
+prompt_userid_exists "$serviceName"
# check that the service name is well formatted
check_service_name "$serviceName"