diff options
| author | ben dewan <bdewan@us.ibm.com> | 2018-04-23 13:19:38 -0400 |
|---|---|---|
| committer | ben dewan <bdewan@us.ibm.com> | 2018-04-23 13:19:38 -0400 |
| commit | aedc3c841feab0b679327074f5fdb5b63061f58b (patch) | |
| tree | 12293151141d035e6118aa8813d8cb24940f3daf /template.go | |
| parent | 13cef445dde00407938fb8e963a56bb7c4434f7e (diff) | |
Writing output files from a stdin template requires permissions
This fixes #304
Diffstat (limited to 'template.go')
| -rw-r--r-- | template.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/template.go b/template.go index 7f5e6688..dcb2c8b1 100644 --- a/template.go +++ b/template.go @@ -60,6 +60,7 @@ func gatherTemplates(o *Config) (templates []*tplate, err error) { templates = []*tplate{{ name: "<arg>", contents: o.Input, + mode: os.FileMode(0644), }} if len(o.OutputFiles) == 1 { |
