We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04285bf commit 1a36e02Copy full SHA for 1a36e02
apps/execution-service/src/execution/execution.service.ts
@@ -89,7 +89,12 @@ export class ExecutionService {
89
callback: (result: ExecutionResult) => void,
90
) => {
91
try {
92
- const process = spawn('docker', [...dockerArgs, ...command]);
+ const fullCommand = input
93
+ ? ['sh', '-c', `echo "${input}" | ${command.join(' ')}`]
94
+ : command;
95
+
96
+ const process = spawn('docker', [...dockerArgs, ...fullCommand]);
97
98
let output = '';
99
let errorOutput = '';
100
let isTimedOut = false;
0 commit comments