Skip to content

Commit 1a36e02

Browse files
committed
fix: add echo wala input
1 parent 04285bf commit 1a36e02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/execution-service/src/execution/execution.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ export class ExecutionService {
8989
callback: (result: ExecutionResult) => void,
9090
) => {
9191
try {
92-
const process = spawn('docker', [...dockerArgs, ...command]);
92+
const fullCommand = input
93+
? ['sh', '-c', `echo "${input}" | ${command.join(' ')}`]
94+
: command;
95+
96+
const process = spawn('docker', [...dockerArgs, ...fullCommand]);
97+
9398
let output = '';
9499
let errorOutput = '';
95100
let isTimedOut = false;

0 commit comments

Comments
 (0)