projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweak some of the prompting, to change defaults, and add PROMPT usage where missing
[monkeysphere.git]
/
src
/
share
/
mh
/
revoke_hostname
diff --git
a/src/share/mh/revoke_hostname
b/src/share/mh/revoke_hostname
index 77f1f0dcc71ddb3eb82d3bc8919268baf9ae60cd..92383a08f5757292d7ebfdbc97efaae21a342629 100644
(file)
--- a/
src/share/mh/revoke_hostname
+++ b/
src/share/mh/revoke_hostname
@@
-45,8
+45,8
@@
uidIndex=$(find_host_userid) || \
if [ "$PROMPT" = "true" ] ; then
echo "The following host key user ID will be revoked:"
echo " $userID"
if [ "$PROMPT" = "true" ] ; then
echo "The following host key user ID will be revoked:"
echo " $userID"
- read -p "Are you sure you would like to revoke this user ID? (
y/N) " OK; OK=${OK:=N
}
- if [
${OK/y/Y}
!= 'Y' ] ; then
+ read -p "Are you sure you would like to revoke this user ID? (
N/y) " OK; OK=${OK:=Y
}
+ if [
"${OK/y/Y}"
!= 'Y' ] ; then
failure "User ID not revoked."
fi
else
failure "User ID not revoked."
fi
else