From 4d9da8f75a38327d4a9fc1506739221f9fea9c2a Mon Sep 17 00:00:00 2001 From: mike castleman Date: Sat, 11 Jul 2009 15:45:32 -0400 Subject: [PATCH] don't use read -p; it is sucky (closes: #446) --- src/monkeysphere | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/monkeysphere b/src/monkeysphere index 6f43632..c45a36f 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -144,7 +144,8 @@ check_gpg_authentication_subkey() { if [ "$validity" = 'u' ] ; then echo "A valid authentication key already exists for primary key '$keyID'." 1>&2 if [ "$PROMPT" = "true" ] ; then - read -p "Are you sure you would like to generate another one? (y/N) " OK; OK=${OK:N} + printf "Are you sure you would like to generate another one? (y/N) " + read OK; OK=${OK:N} if [ "${OK/y/Y}" != 'Y' ] ; then failure "aborting." fi -- 2.25.1