From a090a371cd07499b50c077335d2f004083a55ae4 Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Thu, 19 Oct 2023 15:55:06 -0400 Subject: [PATCH] Fix the gap between the start of a maintenance period for an LTS and the new LTS start --- stackbrew.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackbrew.js b/stackbrew.js index 9142b3b9..58bec1da 100755 --- a/stackbrew.js +++ b/stackbrew.js @@ -38,7 +38,7 @@ for (version of versions) { let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime(); let isCurrent = foundCurrent ? false : isNaN(lts) || lts >= now; foundCurrent = isCurrent || foundCurrent; - let isLTS = foundLTS ? false : (maintenance >= now) && (now >= lts); + let isLTS = foundLTS ? false : (now >= lts); foundLTS = isLTS || foundLTS; let codename = config[version].codename let defaultAlpine = config[version]['alpine-default']