mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Use LF instead of CRLF endings when appending to .bashrc
This commit is contained in:
parent
e64ca68240
commit
690d4e1a54
@ -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)
|
fmt.Printf("Failed to open bashrc: %s\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
_, err = f.WriteString("\r\n" + command + "\r\n")
|
_, err = f.WriteString("\n" + command + "\n")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to write to bashrc: %s\n", err)
|
fmt.Printf("Failed to write to bashrc: %s\n", err)
|
||||||
_ = f.Close()
|
_ = f.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user