From: mike castleman Date: Sat, 11 Jul 2009 19:45:32 +0000 (-0400) Subject: don't use read -p; it is sucky (closes: #446) X-Git-Tag: monkeysphere_0.25~25^2~3^2~1 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=4d9da8f75a38327d4a9fc1506739221f9fea9c2a don't use read -p; it is sucky (closes: #446) --- 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