The code to fail when new subject's file exists failed always. Fix.
This commit is contained in:
parent
0fe877e1cd
commit
7203926ea4
1 changed files with 4 additions and 2 deletions
|
@ -90,8 +90,10 @@ 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;
|
||||
exit 1;
|
||||
if (-e $fname) {
|
||||
print STDERR "File $fname exists\n";
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@Subjects = sort keys %subjfil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue