1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-08 10:09:18 +01:00

dir: Fix creation of atom template directory

This commit is contained in:
adnano 2021-05-15 21:27:09 -04:00
parent 9f0a4d822e
commit 6adfcae48d

2
dir.go

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