Dont try to read zero byte patch files

master
Hamish Coleman 2 years ago
parent bfcc26f433
commit 3e25aaf1c6

@ -258,6 +258,14 @@ sub main() {
next;
}
if (-z $patchfile) {
warn("Patchfile $patchfile is zero bytes, skipping\n");
if ($fail_on_missing) {
exit(1);
}
next;
}
my $db = read_patchfile($patchfile);
if (!defined($db)) {

Loading…
Cancel
Save