mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-01-11 18:39:47 +00:00
Fix format command
This commit is contained in:
parent
146008a631
commit
9394674b63
|
@ -45,7 +45,7 @@ func formatConfiguration(cmd *cobra.Command, args []string) {
|
|||
os.Stdout.WriteString(buffer.String() + "\n")
|
||||
return
|
||||
}
|
||||
if !bytes.Equal(configContent, buffer.Bytes()) {
|
||||
if bytes.Equal(configContent, buffer.Bytes()) {
|
||||
return
|
||||
}
|
||||
output, err := os.Create(configPath)
|
||||
|
|
Loading…
Reference in a new issue