functionbuilder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nathan Coad
2023-02-10 16:54:40 +11:00
parent bceb78033c
commit 178e27bc7e
4 changed files with 15 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ func runCommand2(ctx context.Context,
params.DirektivDir,
}
cmd, err := templateString(`ls -la /tmp`, at)
cmd, err := templateString(`/bin/bash -c "echo '{{ .InData | toJson }}' > /tmp/input.json"`, at)
if err != nil {
ri.Logger().Infof("error executing command: %v", err)
ir[resultKey] = err.Error()