diff --git a/pkg/proji/storage/item/project.go b/pkg/proji/storage/item/project.go index 6f7f98e7..3bab9115 100644 --- a/pkg/proji/storage/item/project.go +++ b/pkg/proji/storage/item/project.go @@ -106,10 +106,13 @@ func (proj *Project) createFiles() error { // Replace keyword with project name file.Destination = re.ReplaceAllString(file.Destination, proj.Name) - _, err := os.OpenFile(file.Destination, os.O_RDONLY|os.O_CREATE, os.ModePerm) + + // Create file + f, err := os.Create(file.Destination) if err != nil { return err } + _ = f.Close() } return nil }