diff --git a/internal/certificates/certificates.go b/internal/certificates/certificates.go index d98526f..939fbd1 100644 --- a/internal/certificates/certificates.go +++ b/internal/certificates/certificates.go @@ -198,7 +198,7 @@ func handleCertificateAction(cert configuration.CertificateData) error { sargs := strings.Split(action, " ") - cmd := exec.Command(sargs[0], sargs...) + cmd := exec.Command(sargs[0], sargs[1:]...) err := cmd.Run() return err } diff --git a/internal/constants/constants.go b/internal/constants/constants.go index d888ac0..204e740 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -1,6 +1,6 @@ package constants -const Version = "0.1.0" +const Version = "0.1.1" const CertificateApiPath = "/certwarden/api/v1/download/certificates/" const ApiKeyHeaderName = "X-API-Key" const UserAgent = "certwarden-deploy/" + Version + " +https://code.lila.network/adoralaura/certwarden-deploy"