mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
dir: Fix creation of atom template directory
This commit is contained in:
parent
9f0a4d822e
commit
6adfcae48d
2
dir.go
2
dir.go
|
@ -245,7 +245,7 @@ func (d *Dir) write(dstDir string, task *Task) error {
|
||||||
if d.feed != nil {
|
if d.feed != nil {
|
||||||
const path = "atom.xml"
|
const path = "atom.xml"
|
||||||
dstPath := pathpkg.Join(dirPath, path)
|
dstPath := pathpkg.Join(dirPath, path)
|
||||||
os.MkdirAll(dstDir, 0755)
|
os.MkdirAll(dirPath, 0755)
|
||||||
if err := os.WriteFile(dstPath, d.feed, 0644); err != nil {
|
if err := os.WriteFile(dstPath, d.feed, 0644); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue