From 97063615a0ed715f1e9b710c0b91d4f60670ea61 Mon Sep 17 00:00:00 2001 From: hirenko-v Date: Wed, 2 Oct 2024 00:03:16 +0300 Subject: [PATCH] fx --- cmd/job/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/job/main.go b/cmd/job/main.go index 1900151..ebb437e 100644 --- a/cmd/job/main.go +++ b/cmd/job/main.go @@ -138,7 +138,7 @@ func (e *MsgExecutor) Execute(ctx context.Context, in executor.ExecuteInput) (ex } createCmd := fmt.Sprintf("kubectl apply -f %s", filePath) plugin.ExecuteCommand(ctx, createCmd, plugin.ExecuteCommandEnvs(envs)) - defer os.RemoveAll(jobName) + defer os.RemoveAll(filePath) return executor.ExecuteOutput{ Message: api.NewCodeBlockMessage(fmt.Sprintf("Job %s is started",jobName), true), }, nil