canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
[monkeysphere.git] / src / monkeysphere-host
index 4f536e2365a784addde542c4407d073c3c9d7a06..fab3ef70e96ad5d22a23e2abcd4d69dc709d82fa 100755 (executable)
@@ -163,7 +163,7 @@ prompt_userid_exists() {
 
     if gpgOut=$(gpg_host_list_keys "=${userID}" 2>/dev/null) ; then
        fingerprint=$(echo "$gpgOut" | grep '^fpr:' | cut -d: -f10)
-       if [ "$PROMPT" = "true" ] ; then
+       if [ "$PROMPT" != "false" ] ; then
            printf "Service name '%s' is already being used by key '%s'.\nAre you sure you want to use it again? (y/N) " "$fingerprint" "$userID" >&2
            read OK; OK=${OK:=N}
            if [ "${OK/y/Y}" != 'Y' ] ; then