From 8e77bcc930bc8a6b0696a8c83369bd16e23b1833 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Wed, 14 Sep 2022 19:42:55 +0200 Subject: Filter out any duplicate files to post process Updates #10269 --- hugolib/hugo_sites_build.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hugolib/hugo_sites_build.go') 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) -- cgit v1.2.3