tweak some of the prompting, to change defaults, and add PROMPT usage where missing
[monkeysphere.git] / src / share / mh / publish_key
index 37b8a72628ad741bff5e50e380495b6aadb47be6..05faa0be25e55b9a7e1ea7ce9c2bdda00370a09e 100644 (file)
@@ -18,8 +18,8 @@ publish_key() {
 local GNUPGHOME
 
 if [ "$PROMPT" = "true" ] ; then
-    read -p "Really publish host key to $KEYSERVER? (y/N) " OK; OK=${OK:=N}
-    if [ ${OK/y/Y} != 'Y' ] ; then
+    read -p "Really publish host key to $KEYSERVER? (Y/n) " OK; OK=${OK:=Y}
+    if [ "${OK/y/Y}" != 'Y' ] ; then
        failure "key not published."
     fi
 else