[Pgp-tools-commit] r165 - trunk/caff

Christoph Berg myon-guest at costa.debian.org
Sun Aug 7 21:09:04 UTC 2005


Author: myon-guest
Date: 2005-08-07 21:09:03 +0000 (Sun, 07 Aug 2005)
New Revision: 165

Modified:
   trunk/caff/caff
Log:
do not continue after writing template config file

Modified: trunk/caff/caff
===================================================================
--- trunk/caff/caff	2005-08-07 21:04:56 UTC (rev 164)
+++ trunk/caff/caff	2005-08-07 21:09:03 UTC (rev 165)
@@ -333,11 +333,11 @@
 	unless (-f $config) {
 		print "No configfile $config present, I will use this template:\n";
 		my $template = generate_config();
-		print "$template\nPress enter to continue.";
-		<STDIN>;
+		print "$template\nPlease edit $config and run caff again.\n";
 		open F, ">$config" or die "$config: $!";
 		print F $template;
 		close F;
+		exit(1);
 	}
 	unless (scalar eval `cat $config`) {
 		die "Couldn't parse $config: $EVAL_ERROR\n" if $EVAL_ERROR;





More information about the Pgp-tools-commit mailing list