We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51f8807 + 2a636f8 commit 94c4979Copy full SHA for 94c4979
1 file changed
cmd/gen-manpages/main.go
@@ -49,6 +49,9 @@ func run() error {
49
if err != nil {
50
return err
51
}
52
+ if _, err := os.Stat(dir); os.IsNotExist(err) {
53
+ os.Mkdir(dir, os.ModePerm)
54
+ }
55
if err := ioutil.WriteFile(filepath.Join(dir, fmt.Sprintf("%s.1", name)), []byte(data), 0644); err != nil {
56
57
0 commit comments