1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-15 05:46:52 +03:00

add_commit_links.pl: error out if missing major version number

Reported-by: Tom Lane

Author: Tom Lane

Discussion: https://postgr.es/m/53125.1756591456@sss.pgh.pa.us
This commit is contained in:
Bruce Momjian
2025-08-30 18:26:08 -04:00
parent 5487058b56
commit 0c6d572c11

View File

@@ -50,6 +50,8 @@ sub process_file
# Get major version number from the file name.
$file =~ m/-(\d+)\./;
my $major_version = $1;
die "file name $file is not in the expected format\n"
unless defined $major_version;
open(my $fh, '<', $file) || die "could not open file $file: $!\n";
open(my $tfh, '>', $tmpfile) || die "could not open file $tmpfile: $!\n";