The code to fail when new subject's file exists failed always. Fix.

This commit is contained in:
Markus Armbruster 2006-01-15 08:05:13 +00:00
parent 0fe877e1cd
commit 7203926ea4

View file

@ -90,9 +90,11 @@ for my $t (keys %subjfil) {
unless (grep(/^$t$/, @Subjects)) {
print STDERR "WARNING: $t is a NEW subject\n";
my $fname = "info/$t.t";
print STDERR "File $fname exists\n" if -e $fname;
if (-e $fname) {
print STDERR "File $fname exists\n";
exit 1;
}
}
}
@Subjects = sort keys %subjfil;