fix: not ignore gitea
All checks were successful
build / build (push) Successful in 1m3s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
Hydraallen 2024-10-15 16:58:02 +08:00
parent 7654c7e6f3
commit eb0ad570ee

View File

@ -45,7 +45,7 @@ func getForbiddens(root string, fileList []string, localList string) ([]string,
}
if info.IsDir() {
if info.Name() == ".git" || info.Name() == ".gitea" || info.Name() == "ci" || (localList != "" && inString(info.Name(), dirs)) {
if info.Name() == ".git" || (localList != "" && inString(info.Name(), dirs)) {
return filepath.SkipDir
}
} else {