diff options
author | mike castleman <m@mlcastle.net> | 2009-07-11 16:19:31 -0400 |
---|---|---|
committer | mike castleman <m@mlcastle.net> | 2009-07-11 16:19:31 -0400 |
commit | a2704823c7770bc8df9377116877fcca78c3ea12 (patch) | |
tree | 9b018557b71721194835d14c9df0cc66d5dbd8db /src/share/mh/revoke_key | |
parent | 4d9da8f75a38327d4a9fc1506739221f9fea9c2a (diff) |
more replacement of read -p with printf; read (re #446)
Diffstat (limited to 'src/share/mh/revoke_key')
-rw-r--r-- | src/share/mh/revoke_key | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/share/mh/revoke_key b/src/share/mh/revoke_key index ad68d5f..5460e51 100644 --- a/src/share/mh/revoke_key +++ b/src/share/mh/revoke_key @@ -33,7 +33,8 @@ Publishing this certificate will IMMEDIATELY and PERMANENTLY revoke your host key! EOF - read -p "Publish the certificate after generation? (y/n/Q) " publish + printf "Publish the certificate after generation? (y/n/Q) " >&2 + read publish if ! [ "${publish/y/Y}" = 'Y' -o "${publish/n/N}" = 'N' ] ; then failure "aborting at user request" @@ -87,7 +88,8 @@ y if [ "${publish/y/Y}" = 'Y' ] ; then printf "\n" >&2 - read -p "Really publish this cert to $KEYSERVER ? (Y/n) " really + printf "Really publish this cert to $KEYSERVER ? (Y/n) " >&2 + read really if [ "${really/n/N}" = 'N' ] ; then printf "Not publishing.\n" >&2 else |