From: myon-guest Date: Sun, 7 Aug 2005 21:09:03 +0000 (+0000) Subject: do not continue after writing template config file X-Git-Url: https://git.sthu.org/?p=pgp-tools.git;a=commitdiff_plain;h=0dd17ac67500a957cb6d638fae5c55e59ea6dc79 do not continue after writing template config file git-svn-id: svn://svn.debian.org/pgp-tools/trunk@165 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/caff/caff b/caff/caff index 73152a4..97b0aa2 100755 --- a/caff/caff +++ b/caff/caff @@ -333,11 +333,11 @@ sub load_config() { unless (-f $config) { print "No configfile $config present, I will use this template:\n"; my $template = generate_config(); - print "$template\nPress enter to continue."; - ; + 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;