Skip to content

Commit 0c6d572

Browse files
committed
add_commit_links.pl: error out if missing major version number
Reported-by: Tom Lane Author: Tom Lane Discussion: https://postgr.es/m/[email protected]
1 parent 5487058 commit 0c6d572

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/add_commit_links.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ sub process_file
5050
# Get major version number from the file name.
5151
$file =~ m/-(\d+)\./;
5252
my $major_version = $1;
53+
die "file name $file is not in the expected format\n"
54+
unless defined $major_version;
5355

5456
open(my $fh, '<', $file) || die "could not open file $file: $!\n";
5557
open(my $tfh, '>', $tmpfile) || die "could not open file $tmpfile: $!\n";

0 commit comments

Comments
 (0)