fix: Ensure SSH private key is written out with a final newline character (#2890) (#3064)

* Ensure SSH private key is written out with a final newline character

* Retrigger stuck CI
This commit is contained in:
jannfis 2020-01-31 20:02:43 +01:00 committed by GitHub
parent 9e81c38c13
commit 9f8505205f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ func (c SSHCreds) Environ() (io.Closer, []string, error) {
}
defer file.Close()
_, err = file.WriteString(c.sshPrivateKey)
_, err = file.WriteString(c.sshPrivateKey + "\n")
if err != nil {
return nil, nil, err
}