diff options
| -rw-r--r-- | complete.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/complete.go b/complete.go index 1607fe1..34dd76c 100644 --- a/complete.go +++ b/complete.go @@ -356,7 +356,7 @@ func doBash(argname string) { } filename := filepath.Join(homeDir, ".local/share/bash-completion/completions", argname) if shell.Exists(filename) { - log.Println(filename, "file already exists") + log.Sprintln(os.Stderr, filename, "file already exists") // os.Exit(0) } basedir, _ := filepath.Split(filename) @@ -367,10 +367,8 @@ func doBash(argname string) { if f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil { f.Write([]byte(makeBashCompletionText2(argname))) f.Close() - log.Println("bash file created:", filename) - log.Println("restart bash") } else { - log.Info(filename, err) + log.Sprintln(os.Stderr, filename, err) } os.Exit(0) } |
