cli: fix name not being defined in helper

This commit is contained in:
Patrik Oldsberg
2020-03-18 16:10:48 +01:00
parent d4f587fdbe
commit 756e7e3212
+2 -1
View File
@@ -36,11 +36,12 @@ export async function run(
env,
});
await waitForExit(child);
await waitForExit(child, name);
}
export async function waitForExit(
child: ChildProcess & { exitCode?: number },
name?: string,
): Promise<void> {
if (typeof child.exitCode === 'number') {
if (child.exitCode) {