sync: Ignore some hidden files/dirs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-07-30 11:32:23 +02:00
parent 357035deba
commit 7e9c2ccbe9
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func BuildFilesListInto(i Importer, exercice fic.Exercice, into string) (files [
errs = append(errs, err.Error()) errs = append(errs, err.Error())
} else { } else {
for _, fname := range flist { for _, fname := range flist {
if fname == "DIGESTS.txt" { if fname == "DIGESTS.txt" || fname == ".gitattributes" {
continue continue
} }

View File

@ -26,8 +26,10 @@ func GetThemes(i Importer) ([]string, error) {
return nil, err return nil, err
} else { } else {
for _, dir := range dirs { for _, dir := range dirs {
if _, err := i.listDir(dir); err == nil { if !strings.HasPrefix(dir, ".") {
themes = append(themes, dir) if _, err := i.listDir(dir); err == nil {
themes = append(themes, dir)
}
} }
} }
} }