Hi all
I'm coding using Python and I try to find all Bash scripts in my repo and, then, run /bin/basn -n script.sh to make sure there is no syntax error.
When I'm in my console, the command find . -type f -name *.sh | xargs -n 1 /bin/bash -n is working.
In my snippet below, I've add .terminal() and, yes, it works.
But .with_exec() throws an error telling that the pipe character is not recognized by find
command: str = r"find . -type f -name *.sh | xargs -n 1 /bin/bash -n"
return (
await (
dag.container()
.from_(self.env.images("DOCKER_ALPINE"))
# [...]
.terminal()
.with_exec(command.split())
.stdout()
)
)
Did you have any tips?
Thanks!