diff --git a/main.go b/main.go index d24a8dd..dcceffa 100644 --- a/main.go +++ b/main.go @@ -148,7 +148,7 @@ func RemoveProcessFromList(process string, conf *Configuration, configPath strin for k, v := range conf.Processes { if v == process { copy(conf.Processes[:k], conf.Processes[k+1:]) - + if err := StoreConfiguration(configPath, conf); err != nil { return err } @@ -175,8 +175,8 @@ func version() { fmt.Println("httpprocwatchd ver. 1.1") fmt.Println("Copyright (c) 2021 Alexander \"Arav\" Andreev ") fmt.Println("License GPLv3+: GNU GPL version 3 or later .") - fmt.Println("This is free software, and you are welcome to change and redistribute it.") - fmt.Println("There is NO WARRANTY, to the extent permitted by law.") + fmt.Println("This is free software, and you are welcome to change and redistribute it.") + fmt.Println("There is NO WARRANTY, to the extent permitted by law.") } var oConfigPath string @@ -227,7 +227,7 @@ func main() { if oAddProcess != "" { err := AddProcessToList(oAddProcess, conf, oConfigPath) if err != nil { - log.Fatalf("Cannot add process: %s\n", err) + log.Fatalf("Cannot add process: %s\n", err) } return } @@ -235,7 +235,7 @@ func main() { if oRemoveProcess != "" { err := RemoveProcessFromList(oRemoveProcess, conf, oConfigPath) if err != nil { - log.Fatalf("Cannot remove process: %s\n", err) + log.Fatalf("Cannot remove process: %s\n", err) } return }