1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 19:08:22 +01:00

dir: Fix atom template output path

This commit is contained in:
adnano 2021-05-15 21:04:15 -04:00
parent bdc6c7632b
commit 13b3d24738

2
dir.go

@ -248,7 +248,7 @@ func (d *Dir) write(dstDir string, task *Task) error {
// Write the atom feed
if d.feed != nil {
const path = "atom.xml"
dstPath := pathpkg.Join(dstDir, path)
dstPath := pathpkg.Join(dirPath, path)
os.MkdirAll(dstDir, 0755)
if err := os.WriteFile(dstPath, d.feed, 0644); err != nil {
return err