Filter out any duplicate files to post process

Updates #10269
This commit is contained in:
Bjørn Erik Pedersen 2022-09-14 19:42:55 +02:00
parent 74daca6b30
commit 8e77bcc930
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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)