Fix commands
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Adam Štrauch 2023-04-13 22:30:11 +02:00
parent d7b878bbbc
commit da5ad13ae3
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 2 additions and 2 deletions

View File

@ -264,11 +264,11 @@ func (c *Container) GenerateDeploySSHKeys() (bool, error) {
func (c *Container) GetDeploySSHKeys() (string, string, error) {
driver := c.getDriver()
privateKey, err := driver.Exec(c.App.Name, []string{"cat ", "/srv/.ssh/id_rsa"}, "", []string{}, true)
privateKey, err := driver.Exec(c.App.Name, []string{"cat", "/srv/.ssh/id_rsa"}, "", []string{}, true)
if err != nil {
return "", "", err
}
pubKey, err := driver.Exec(c.App.Name, []string{"cat ", "/srv/.ssh/id_rsa.pub"}, "", []string{}, true)
pubKey, err := driver.Exec(c.App.Name, []string{"cat", "/srv/.ssh/id_rsa.pub"}, "", []string{}, true)
if err != nil {
return "", "", err
}