canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
[monkeysphere.git] / src / share / mh / add_name
index 754ced45f47774c9e18414a4467fc6e8c7ebf307..39ebaceeb0dfe684b8713b547cc08af31f61efa5 100644 (file)
@@ -39,7 +39,7 @@ prompt_userid_exists "$serviceName"
 
 check_service_name "$serviceName"
 
-if [ "$PROMPT" = "true" ] ; then
+if [ "$PROMPT" != "false" ] ; then
     printf "The following service name will be added to key '$keyID':\n  %s\nAre you sure you would like to add this service name? (Y/n) " "$serviceName" >&2
     read OK; OK=${OK:=Y}
     if [ "${OK/y/Y}" != 'Y' ] ; then