sync: Ignore exercice directories not containing at least - sep
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nemunaire 2021-05-14 01:25:08 +02:00
parent 8b261011b6
commit 57fe1a7517

View File

@ -32,7 +32,7 @@ func GetExercices(i Importer, theme fic.Theme) ([]string, error) {
} else {
for _, dir := range dirs {
if _, err := i.listDir(path.Join(theme.Path, dir)); err == nil {
if dir[0] != '.' {
if dir[0] != '.' && strings.Contains(dir, "-") {
exercices = append(exercices, dir)
}
}