more replacement of read -p with printf; read (re #446)
[monkeysphere.git] / src / share / ma / add_certifier
index 402da08e552cdccdf48329f89df4af28aca0fc12..16019976c4a084e376bbd0caa35aacecb3a9e435 100644 (file)
@@ -136,8 +136,8 @@ EOF
     gpg_sphere "--fingerprint 0x${fingerprint}!"
 
     if [ "$PROMPT" = "true" ] ; then
-       echo "Are you sure you want to add the above key as a certifier"
-       read -p "of users on this system? (Y/n) " OK; OK=${OK:-Y}
+       printf "Are you sure you want to add the above key as a certifier\nof users on this system? (Y/n) " >&2
+       read OK; OK=${OK:-Y}
        if [ "${OK/y/Y}" != 'Y' ] ; then
            failure "Identity certifier not added."
        fi