summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-01-18 18:38:27 -0500
committerJameson Rollins <jrollins@finestructure.net>2010-01-18 18:38:27 -0500
commit7dbd6806e538ff8732dd87fcf20bfd8271464552 (patch)
tree7a564c4d55e5e6f9a2f74d1a22fa59aae03171a5 /src/monkeysphere-host
parent638a70f020f4ccda3deb15e5c697d384e0f705d7 (diff)
canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 4f536e2..fab3ef7 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -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