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:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user