Merge commit 'mlcastle/master'
[monkeysphere.git] / src / share / mh / publish_key
index ab1b2dc055d3dfbafc01b5dd6d4ec2ef4e2f795e..48e4cbb16169222895fb0902aa171a8647c17879 100644 (file)
@@ -18,7 +18,8 @@ publish_key() {
 local GNUPGHOME
 
 if [ "$PROMPT" = "true" ] ; then
-    read -p "Really publish host key to $KEYSERVER? (Y/n) " OK; OK=${OK:=Y}
+    printf "Really publish host key to $KEYSERVER? (Y/n) " >&2
+    read OK; OK=${OK:=Y}
     if [ "${OK/y/Y}" != 'Y' ] ; then
        failure "key not published."
     fi