From a2704823c7770bc8df9377116877fcca78c3ea12 Mon Sep 17 00:00:00 2001
From: mike castleman <m@mlcastle.net>
Date: Sat, 11 Jul 2009 16:19:31 -0400
Subject: more replacement of read -p with printf; read (re #446)

---
 src/share/ma/add_certifier | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/share/ma/add_certifier')

diff --git a/src/share/ma/add_certifier b/src/share/ma/add_certifier
index 402da08..1601997 100644
--- a/src/share/ma/add_certifier
+++ b/src/share/ma/add_certifier
@@ -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
-- 
cgit v1.2.3