aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-09-14 19:42:55 +0200
committerBjørn Erik Pedersen <[email protected]>2022-09-14 19:42:55 +0200
commit8e77bcc930bc8a6b0696a8c83369bd16e23b1833 (patch)
treeeaf9ead8bf78d1d2ce71c03d2a3502506b11006f
parent74daca6b3050d96cd3a08b13f45de24edb450163 (diff)
downloadhugo-8e77bcc930bc8a6b0696a8c83369bd16e23b1833.tar.gz
hugo-8e77bcc930bc8a6b0696a8c83369bd16e23b1833.zip
Filter out any duplicate files to post process
Updates #10269
-rw-r--r--hugolib/hugo_sites_build.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 3bebc5284..5eee564aa 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -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)