mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #5192 from bhaskarbalusani/master
Update spawn API with {shell=true}
This commit is contained in:
commit
c093e39849
@ -174,7 +174,8 @@ class AwsInvokeLocal {
|
||||
|
||||
return new BbPromise(resolve => {
|
||||
const python = spawn(runtime,
|
||||
['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env });
|
||||
['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName],
|
||||
{ env: process.env }, { shell: true });
|
||||
python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));
|
||||
python.stderr.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));
|
||||
python.stdin.write(input);
|
||||
@ -191,7 +192,7 @@ class AwsInvokeLocal {
|
||||
`-DhandlerName=${handlerName}`,
|
||||
'-jar',
|
||||
path.join(__dirname, 'java', 'target', 'invoke-bridge-1.0.jar'),
|
||||
]);
|
||||
], { shell: true });
|
||||
|
||||
this.serverless.cli.log([
|
||||
'In order to get human-readable output,',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user