mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-15 04:31:16 +00:00
Resolve execCompose future on exit instead of close
This commit is contained in:
parent
3a8b74665d
commit
1a85ccacf4
1 changed files with 1 additions and 4 deletions
5
index.js
5
index.js
|
|
@ -81,10 +81,7 @@ const execCompose = (command, args, options) => new Promise((resolve, reject) =>
|
|||
});
|
||||
|
||||
childProc.on('exit', exitCode => {
|
||||
result.exitCode = exitCode
|
||||
})
|
||||
|
||||
childProc.on('close', () => {
|
||||
result.exitCode = exitCode;
|
||||
resolve(result);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue