make failures with unwritable known_hosts slightly less cryptic.
[monkeysphere.git] / src / monkeysphere
index 6f43632307b25d235ed5094457e96fe77de5b7a8..341b9fdbd4fefa8366a5d38205e99559d19e84d0 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) " >&2
+               read OK; OK=${OK:N}
                if [ "${OK/y/Y}" != 'Y' ] ; then
                    failure "aborting."
                fi