Skip to content

Commit

Permalink
Fix: directory permissions issue
Browse files Browse the repository at this point in the history
Signed-off-by: roee88 <roee88@gmail.com>
  • Loading branch information
roee88 committed Jan 7, 2021
1 parent c91c36a commit 6f34fd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Generated e.g. by LineCount
# Generated e.g. by LineCount and the example usage command
out/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Flags:
For example:

```bash
crdoc --template templates --resources example/crds --output example/output.md
crdoc --template templates --resources example/crds --output out/output.md
```

## Limitations
Expand Down
2 changes: 1 addition & 1 deletion pkg/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (b *ModelBuilder) Write() error {
outputFilepath := filepath.Clean(b.OutputFilepath)

// create dirs if needed
err := os.MkdirAll(filepath.Dir(outputFilepath), 0666)
err := os.MkdirAll(filepath.Dir(outputFilepath), os.ModePerm)
if err != nil {
return err
}
Expand Down

0 comments on commit 6f34fd5

Please sign in to comment.