mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-24 17:31:53 +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 => {
|
childProc.on('exit', exitCode => {
|
||||||
result.exitCode = exitCode
|
result.exitCode = exitCode;
|
||||||
})
|
|
||||||
|
|
||||||
childProc.on('close', () => {
|
|
||||||
resolve(result);
|
resolve(result);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue