mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-03 20:15:07 +02:00
+9
-3
@@ -649,9 +649,15 @@ func (a *App) findDesiredStateFiles(specifiedPath string) ([]string, error) {
|
||||
if err != nil {
|
||||
return []string{}, err
|
||||
}
|
||||
sort.Slice(files, func(i, j int) bool {
|
||||
return files[i] < files[j]
|
||||
})
|
||||
if a.Reverse {
|
||||
sort.Slice(files, func(i, j int) bool {
|
||||
return files[j] < files[i]
|
||||
})
|
||||
} else {
|
||||
sort.Slice(files, func(i, j int) bool {
|
||||
return files[i] < files[j]
|
||||
})
|
||||
}
|
||||
return files, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user