From e37af6fd9e06d234f8d6af72b9e15cc0408a4f00 Mon Sep 17 00:00:00 2001 From: Chris Hager Date: Wed, 12 Jun 2024 10:25:31 +0200 Subject: [PATCH] website building: fix prefix check to work after 2030 --- cmd/website/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/website/main.go b/cmd/website/main.go index eb3c0f4..0c03cff 100644 --- a/cmd/website/main.go +++ b/cmd/website/main.go @@ -208,7 +208,7 @@ func getFoldersFromS3(dir string) ([]string, error) { // Print the output lines := strings.Split(string(stdout), "\n") for _, line := range lines { - if line != "" && strings.HasPrefix(line, "202") { + if line != "" && strings.HasPrefix(line, "20") { folders = append(folders, strings.TrimSuffix(line, "/")) } }