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())
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,13 @@ func GetThemes(i Importer) ([]string, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
for _, dir := range dirs {
|
for _, dir := range dirs {
|
||||||
|
if !strings.HasPrefix(dir, ".") {
|
||||||
if _, err := i.listDir(dir); err == nil {
|
if _, err := i.listDir(dir); err == nil {
|
||||||
themes = append(themes, dir)
|
themes = append(themes, dir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return themes, nil
|
return themes, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user