canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
[monkeysphere.git] / src / share / mh / publish_key
index 553cd7257ccdd4969f7bb6ced3dcfb75841f5003..f1c17234f819477b74e272bb1c37fac493b4e6b7 100644 (file)
@@ -18,7 +18,7 @@ publish_key() {
 local keyID="$1"
 local GNUPGHOME
 
-if [ "$PROMPT" = "true" ] ; then
+if [ "$PROMPT" != "false" ] ; then
     printf "Really publish key '$keyID' to $KEYSERVER? (Y/n) " >&2
     read OK; OK=${OK:=Y}
     if [ "${OK/y/Y}" != 'Y' ] ; then