Skip to content

Commit

Permalink
Generated files have an execution permissions on Linux (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvolod authored Jul 7, 2022
1 parent 80124ce commit 2efd0c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/coverage.txt
/gomarkdoc
/bin/
README-test.md
README-test.md

# editor and IDE paraphernalia
.vscode/*
.idea
*.iml
*.swp
*.swo
*~
2 changes: 1 addition & 1 deletion cmd/gomarkdoc/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func writeFile(fileName string, text string) error {
folder := filepath.Dir(fileName)

if folder != "" {
if err := os.MkdirAll(folder, 0755); err != nil {
if err := os.MkdirAll(folder, 0664); err != nil {
return fmt.Errorf("failed to create folder %s: %w", folder, err)
}
}
Expand Down

0 comments on commit 2efd0c5

Please sign in to comment.