From da5ad13ae382f7d91f153c1a33b647b57d9b8db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Thu, 13 Apr 2023 22:30:11 +0200 Subject: [PATCH] Fix commands --- containers/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/types.go b/containers/types.go index a47758d..8b18c07 100644 --- a/containers/types.go +++ b/containers/types.go @@ -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 }