format octal
This commit is contained in:
@@ -40,7 +40,7 @@ func New(cmd *cobra.Command, args []string) {
|
||||
}
|
||||
|
||||
func writeFile(path string, data string) error {
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
return os.WriteFile(path, []byte(data), 0644)
|
||||
|
||||
Reference in New Issue
Block a user