Use LF instead of CRLF endings when appending to .bashrc

This commit is contained in:
comp500 2021-06-22 00:52:41 +01:00
parent e64ca68240
commit 690d4e1a54

View File

@ -90,7 +90,7 @@ Please note that the completions may be incomplete or broken, see https://github
fmt.Printf("Failed to open bashrc: %s\n", err)
os.Exit(1)
}
_, err = f.WriteString("\r\n" + command + "\r\n")
_, err = f.WriteString("\n" + command + "\n")
if err != nil {
fmt.Printf("Failed to write to bashrc: %s\n", err)
_ = f.Close()