Merge pull request #307 from spotify/rugvip/helper-fix

cli: fix name not being defined in helper
This commit is contained in:
Patrik Oldsberg
2020-03-18 16:27:19 +01:00
committed by GitHub
+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) {