fix: Empty data parsing for odd number branch

Because the cutover to 17 being "current" happens, but the line doesn't have an LTS date, the tags wernt changing
This commit is contained in:
Nick Schonning 2021-10-27 12:16:49 -04:00
parent c2444b078d
commit 57f92eddb5
No known key found for this signature in database
GPG Key ID: 5DDAAD9C9AAFFD9F
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const slimRE = new RegExp(/\*-slim/);
for (version of versions) {
let lts = new Date(`${config[version].lts}T00:00:00.00`).getTime();
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
let isCurrent = lts >= now;
let isCurrent = isNaN(lts) || lts >= now;
let isLTS = (maintenance >= now) && (now >= lts);
let codename = config[version].codename
let defaultAlpine = config[version]['alpine-default']