From e6e9b548cbe027416d5c3924cf4c131d2dd4fe1f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 12 Jan 2024 13:52:55 -0600 Subject: 90% there Signed-off-by: Jeff Carr --- repoHTML.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'repoHTML.go') diff --git a/repoHTML.go b/repoHTML.go index 51a759b..f1426e5 100644 --- a/repoHTML.go +++ b/repoHTML.go @@ -52,6 +52,7 @@ func doGui(w http.ResponseWriter, gourl string, realurl string) { } var repoMap map[string]string +var configfile []string var keysSorted []string func findkey(url string) (string, string) { @@ -70,8 +71,8 @@ func readconfigfile() { log.Error(err, "missing repomap in the binary") return } - lines := strings.Split(string(pfile), "\n") - for _, line := range lines { + configfile = strings.Split(string(pfile), "\n") + for _, line := range configfile { fields := strings.Fields(line) if (len(fields) < 2) { continue -- cgit v1.2.3