mirror of
https://github.com/bitcoin/bips.git
synced 2025-02-22 06:52:38 +01:00
Bugfix: scripts/buildtable: Increment found marker *after* processing the header
This commit is contained in:
parent
959fecc15b
commit
42770fb619
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,6 @@ while (++$bipnum <= $topbip) {
|
|||
} else {
|
||||
die "Bad line in $fn preamble";
|
||||
}
|
||||
++$found{$field};
|
||||
die "Extra spaces in $fn" if $val =~ /^\s/;
|
||||
if ($field eq 'BIP') {
|
||||
die "$fn claims to be BIP $val" if $val ne $bipnum;
|
||||
|
@ -163,6 +162,7 @@ while (++$bipnum <= $topbip) {
|
|||
} elsif (not exists $MiscField{$field}) {
|
||||
die "Unknown field $field in $fn";
|
||||
}
|
||||
++$found{$field};
|
||||
}
|
||||
if (not $found{License}) {
|
||||
die "Missing License in $fn" unless exists $TolerateMissingLicense{$bipnum};
|
||||
|
|
Loading…
Add table
Reference in a new issue