dir: Fix atom template output path

This commit is contained in:
Adnan Maolood 2021-05-15 21:04:15 -04:00
parent b20ffe0d41
commit 495941a8cb

2
dir.go
View file

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