don't use read -p; it is sucky (closes: #446)
authormike castleman <m@mlcastle.net>
Sat, 11 Jul 2009 19:45:32 +0000 (15:45 -0400)
committermike castleman <m@mlcastle.net>
Sat, 11 Jul 2009 19:45:32 +0000 (15:45 -0400)
src/monkeysphere

index 6f43632307b25d235ed5094457e96fe77de5b7a8..c45a36f94d811d3a2ae5eaab382c557c0d0af1d3 100755 (executable)
@@ -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