Compare commits
No commits in common. "main" and "v1.3" have entirely different histories.
1 changed files with 1 additions and 2 deletions
|
|
@ -26,8 +26,7 @@ func (s *Services) AddPrivateKey() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
privateKey := strings.TrimSpace(s.cfg.PrivateKey) + "\n"
|
if err := writeFile(`${HOME}/.ssh/` + s.keyFileName, s.cfg.PrivateKey, 0400); err != nil {
|
||||||
if err := writeFile(`${HOME}/.ssh/` + s.keyFileName, privateKey, 0400); err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue