canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
[monkeysphere.git] / src / share / mh / revoke_name
index 7788327ad879c960ec48cbc4778531bbc8c15057..532cb3001898ba4b9fd94b42088c81ad03207bf8 100644 (file)
@@ -35,7 +35,7 @@ keyID=$(check_key_input "$@")
 check_key_userid "$keyID" "$serviceName" || \
     failure "No non-revoked service name found matching '$serviceName'."
 
-if [ "$PROMPT" = "true" ] ; then
+if [ "$PROMPT" != "false" ] ; then
     printf "The following service name on key '$keyID' will be revoked:\n  %s\nAre you sure you would like to revoke this service name? (Y/n) " "$serviceName" >&2
     read OK; OK=${OK:=Y}
     if [ "${OK/y/Y}" != 'Y' ] ; then