Skip to content

Commit

Permalink
Fixed errors with overwritten updated templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Aug 27, 2020
1 parent 201a3a6 commit 90354f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/internal/runner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (r *Runner) downloadReleaseAndUnzip(downloadURL string) error {
templateDirectory := path.Join(r.templatesConfig.TemplatesDirectory, finalPath)
os.MkdirAll(templateDirectory, os.ModePerm)

f, err := os.OpenFile(path.Join(templateDirectory, name), os.O_CREATE|os.O_WRONLY, 0777)
f, err := os.OpenFile(path.Join(templateDirectory, name), os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
return fmt.Errorf("Could not create uncompressed file: %s", err)
}
Expand Down

0 comments on commit 90354f2

Please sign in to comment.