Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions deployment/cre/jobs/orgsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func CombineCRESettingsFiles(wd string, fs fs.FS) ([]byte, error) {
return settings.CombineTOMLFiles(os.DirFS(wd))
}

// copyOrgFiles makes two copies of each org file. One with an `org_` prefix and one lower-case.
// copyOrgFiles makes a copy of each org file, with an `org_` prefix.
func copyOrgFiles(dir string) error {
dir = filepath.Join(dir, "org")
err := fs.WalkDir(os.DirFS(dir), ".", func(path string, d fs.DirEntry, err error) error {
Expand All @@ -44,13 +44,6 @@ func copyOrgFiles(dir string) error {
if err != nil {
return fmt.Errorf("failed to copy file %s to %s: %w", name, prefixed, err)
}
lower := strings.ToLower(name)
if name != lower { // no need for a copy
err = copyFile(dir, name, lower)
if err != nil {
return fmt.Errorf("failed to copy file %s to %s: %w", name, lower, err)
}
}

return nil
})
Expand Down
Loading