sync: Ignore exercice directories not containing at least - sep
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
8b261011b6
commit
57fe1a7517
@ -32,7 +32,7 @@ func GetExercices(i Importer, theme fic.Theme) ([]string, error) {
|
|||||||
} else {
|
} else {
|
||||||
for _, dir := range dirs {
|
for _, dir := range dirs {
|
||||||
if _, err := i.listDir(path.Join(theme.Path, dir)); err == nil {
|
if _, err := i.listDir(path.Join(theme.Path, dir)); err == nil {
|
||||||
if dir[0] != '.' {
|
if dir[0] != '.' && strings.Contains(dir, "-") {
|
||||||
exercices = append(exercices, dir)
|
exercices = append(exercices, dir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user