canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
[monkeysphere.git] / src / share / ma / add_certifier
index 16019976c4a084e376bbd0caa35aacecb3a9e435..bd3819006ef27b72a6e4b74417877ef176cc728c 100644 (file)
@@ -135,7 +135,7 @@ EOF
     log info "key found:"
     gpg_sphere "--fingerprint 0x${fingerprint}!"
 
-    if [ "$PROMPT" = "true" ] ; then
+    if [ "$PROMPT" != "false" ] ; then
        printf "Are you sure you want to add the above key as a certifier\nof users on this system? (Y/n) " >&2
        read OK; OK=${OK:-Y}
        if [ "${OK/y/Y}" != 'Y' ] ; then