Skip to content

Commit

Permalink
Filter out any duplicate files to post process
Browse files Browse the repository at this point in the history
Updates #10269
  • Loading branch information
bep committed Sep 14, 2022
1 parent 74daca6 commit 8e77bcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hugolib/hugo_sites_build.go
Expand Up @@ -438,7 +438,8 @@ func (h *HugoSites) postProcess() error {
return nil
}

for _, filename := range h.Deps.FilenameHasPostProcessPrefix {
filenames := helpers.UniqueStrings(h.Deps.FilenameHasPostProcessPrefix)
for _, filename := range filenames {
filename := filename
g.Run(func() error {
return handleFile(filename)
Expand Down

0 comments on commit 8e77bcc

Please sign in to comment.