From: joey <> Date: Sat, 20 Nov 2004 19:10:18 +0000 (+0000) Subject: Exit if no GnuPG key has been entered X-Git-Tag: debian_userdir-ldap_0-3-8~40 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=542012658caafb15255f89c8e78468bb93da3c7a Exit if no GnuPG key has been entered --- diff --git a/ud-useradd b/ud-useradd index a7b5f39..829d707 100755 --- a/ud-useradd +++ b/ud-useradd @@ -61,7 +61,7 @@ SetKeyrings(["/org/keyring.debian.org/keyrings/debian-keyring.gpg"]) while (1): Foo = raw_input("Who are you going to add (for a GPG search)? "); if Foo == "": - continue; + sys.exit(0); Keys = GPGKeySearch(Foo);