From cf44dca9918f84a7e0d713b31c357739e0fdda0a Mon Sep 17 00:00:00 2001 From: Dawid Rusnak Date: Thu, 21 Dec 2023 15:00:40 +0100 Subject: [PATCH] fix: pass command arguments down (#4830) --- contrib/executor/init/pkg/runner/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/executor/init/pkg/runner/runner.go b/contrib/executor/init/pkg/runner/runner.go index 3b41064067b..5db22700520 100755 --- a/contrib/executor/init/pkg/runner/runner.go +++ b/contrib/executor/init/pkg/runner/runner.go @@ -92,7 +92,7 @@ func (r *InitRunner) Run(ctx context.Context, execution testkube.Execution) (res } if len(execution.Command) != 0 { - entrypoint += strconv.Quote(filepath.Join(r.Params.DataDir, commandScriptName)) + "\n" + entrypoint += strconv.Quote(filepath.Join(r.Params.DataDir, commandScriptName)) + " $@\n" command += strings.Join(execution.Command, " ") command += " \"$@\"\n" }