more replacement of read -p with printf; read (re #446)
[monkeysphere.git] / src / share / mh / add_revoker
index 077b0d06b4409732f1c31febcf38b9b5e0e48333..e58995b3cff28acbb35ef0341d1308d046db3e7c 100644 (file)
@@ -90,8 +90,8 @@ EOF
     su_monkeysphere_user "GNUPGHOME=$tmpDir gpg --fingerprint 0x${fingerprint}!"
 
     if [ "$PROMPT" = "true" ] ; then
-       read -p "Are you sure you want to add the above key as a revoker
-of the host key? (Y/n) " OK; OK=${OK:-Y}
+       printf "Are you sure you want to add the above key as a revoker\nof the host key? (Y/n) " >&2
+       read OK; OK=${OK:-Y}
        if [ "${OK/y/Y}" != 'Y' ] ; then
            failure "revoker not added."
        fi