summaryrefslogtreecommitdiff
path: root/src/monkeysphere
diff options
context:
space:
mode:
authormike castleman <m@mlcastle.net>2009-07-11 15:45:32 -0400
committermike castleman <m@mlcastle.net>2009-07-11 15:45:32 -0400
commit4d9da8f75a38327d4a9fc1506739221f9fea9c2a (patch)
treeed8762ab8eb09d9868650b9afdbe2d4e71ffcc15 /src/monkeysphere
parenteb815bce0da27a24ad718c31b77e45032e3a5916 (diff)
don't use read -p; it is sucky (closes: #446)
Diffstat (limited to 'src/monkeysphere')
-rwxr-xr-xsrc/monkeysphere3
1 files changed, 2 insertions, 1 deletions
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