projects
/
pgp-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Add comments and licence info to gpg-key2ps
[pgp-tools.git]
/
caff
/
caff
diff --git
a/caff/caff
b/caff/caff
index 73152a434ddee2a53863551e7435acd3f9b5570e..97b0aa25ff7d7645aa98854f569a7f0e7ff77add 100755
(executable)
--- 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();
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;
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;
}
unless (scalar eval `cat $config`) {
die "Couldn't parse $config: $EVAL_ERROR\n" if $EVAL_ERROR;