Fix 'balena push' hanging on Windows (CTRL-C was required after the unicorn)

Resolves: #1182
Resolves: #1554
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
Paulo Castro 2020-01-03 23:45:40 +00:00
parent edd755d41c
commit 95843dd816

View File

@ -37,6 +37,9 @@ export async function run(
// shared options, and performs node version requirement checks.
globalInit();
await routeCliFramework(cliArgs, options);
// Windows fix: reading from stdin prevents the process from exiting
process.stdin.pause();
}
/**