From 022091c8757021eaf812ad9fa0f53ea48596f64d Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Wed, 3 Jul 2024 14:34:12 +0200 Subject: [PATCH] fix handling of action args, bump version to 0.1.1 --- internal/certificates/certificates.go | 2 +- internal/constants/constants.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"