fix: do not list folders in Dokku root that start with an upper-case character

These were never valid app names, so we can avoid listing them altogether as they aren't Dokku apps.
This commit is contained in:
Jose Diaz-Gonzalez
2025-09-14 05:04:27 -04:00
parent 8b9b658951
commit 7e748a1cf3

View File

@@ -640,6 +640,11 @@ func UnfilteredDokkuApps() ([]string, error) {
if strings.HasPrefix(f.Name(), ".") {
continue
}
// skip apps that start with an uppercase letter
if unicode.IsUpper(rune(f.Name()[0])) {
continue
}
apps = append(apps, f.Name())
}