tweak some of the prompting, to change defaults, and add PROMPT usage where missing
[monkeysphere.git] / src / share / mh / revoke_hostname
index 77f1f0dcc71ddb3eb82d3bc8919268baf9ae60cd..92383a08f5757292d7ebfdbc97efaae21a342629 100644 (file)
@@ -45,8 +45,8 @@ uidIndex=$(find_host_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