Skip to content

Commit f2bb4c5

Browse files
committed
exit -> close
1 parent 92b6076 commit f2bb4c5

File tree

1 file changed

+1
-1
lines changed
  • packages/aws-cdk/lib/commands/init

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/commands/init/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ async function execute(ioHelper: IoHelper, cmd: string, args: string[], { cwd }:
910910
child.stdout.on('data', (chunk) => (stdout += chunk.toString()));
911911
return new Promise<string>((ok, fail) => {
912912
child.once('error', (err) => fail(err));
913-
child.once('exit', (status) => {
913+
child.once('close', (status) => {
914914
if (status === 0) {
915915
return ok(stdout);
916916
} else {

0 commit comments

Comments
 (0)