Fixed startnode button showing for startnode

This commit is contained in:
frikky
2021-09-15 20:24:59 +02:00
parent edd295cfc2
commit e28b5d1e9b
5 changed files with 88 additions and 44 deletions
+19
View File
@@ -3667,6 +3667,25 @@ func IterateAppGithubFolders(ctx context.Context, fs billy.Filesystem, dir []os.
continue
}
readmeNames := []string{"readme", "readme.md"}
for _, readmeName := range readmeNames {
readmePath := fmt.Sprintf("%s/%s", extra, readmeName)
readmeInfo, err := fs.Open(readmePath)
if err != nil {
log.Printf("[WARNING] Failed to read README path %s", readmePath)
continue
}
dockerfileData, err := ioutil.ReadAll(dockerfile)
if err != nil {
log.Printf("[WARNING] Failed to read readme file at %s", readmePath)
continue
} else {
log.Printf("[INFO] Found file with name %s", readmeName)
break
}
}
combined := []byte{}
combined = append(combined, appfileData...)
combined = append(combined, appPythonData...)