sync: Ignore some hidden files/dirs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
357035deba
commit
7e9c2ccbe9
@ -42,7 +42,7 @@ func BuildFilesListInto(i Importer, exercice fic.Exercice, into string) (files [
|
||||
errs = append(errs, err.Error())
|
||||
} else {
|
||||
for _, fname := range flist {
|
||||
if fname == "DIGESTS.txt" {
|
||||
if fname == "DIGESTS.txt" || fname == ".gitattributes" {
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,13 @@ func GetThemes(i Importer) ([]string, error) {
|
||||
return nil, err
|
||||
} else {
|
||||
for _, dir := range dirs {
|
||||
if !strings.HasPrefix(dir, ".") {
|
||||
if _, err := i.listDir(dir); err == nil {
|
||||
themes = append(themes, dir)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return themes, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user