when writing output file, dont recurse
parent
a54ccae4c2
commit
b8efdbfa52
|
|
@ -168,5 +168,9 @@ func dump(dry bool, writer io.Writer, filepath string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
return os.WriteFile(filepath, b2, os.ModePerm)
|
||||
b3, err := yaml.Marshal(root)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return os.WriteFile(filepath, b3, os.ModePerm)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue