skip file if its not starting with gluon

This commit is contained in:
Stefan Hoffmann 2023-05-29 21:48:09 +02:00
parent 13bc0dad2e
commit 685f80988e
Signed by: stefan
GPG Key ID: 8EFC7042BF8D5CDD

View File

@ -37,6 +37,10 @@ func split_filenames(files []fs.FileInfo, dir string) []Files {
for i := range files { for i := range files {
current_name := files[i].Name() current_name := files[i].Name()
split := strings.Split(current_name, "-") split := strings.Split(current_name, "-")
if split[0] != "gluon" {
fmt.Println("skipping ", current_name)
continue
}
split_name := len(split) - 1 split_name := len(split) - 1
// Routername // Routername
router_name := strings.Join(split[5:split_name], "-") router_name := strings.Join(split[5:split_name], "-")