Skip to content

Commit

Permalink
Merge pull request #21 from alexsn/chmod-x
Browse files Browse the repository at this point in the history
Remove executable bit from generated files
  • Loading branch information
rjeczalik authored Aug 2, 2020
2 parents 2502276 + 9bb9acc commit 5275369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/interfacer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
}
f := os.Stdout
if *output != "-" {
f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755)
f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
die(err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/structer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func run() (err error) {

w := os.Stdout
if *output != "-" {
w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755)
w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 5275369

Please sign in to comment.