From 62195b63d6878274b4ceb1353a7d64d0bdb5e462 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 29 May 2019 10:56:45 +0200 Subject: [PATCH] fix(core): update --- ts/smartshell.classes.smartshell.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts/smartshell.classes.smartshell.ts b/ts/smartshell.classes.smartshell.ts index 54d8d58..ad502c1 100644 --- a/ts/smartshell.classes.smartshell.ts +++ b/ts/smartshell.classes.smartshell.ts @@ -119,6 +119,10 @@ export class Smartshell { * executes a command async and strict, meaning it rejects the promise if something happens */ public async execStrict(commandStringArg: string): Promise { + return (await this._exec(commandStringArg, false, true)) as IExecResult; + } + + public async execStrictSilent (commandStringArg: string): Promise { return (await this._exec(commandStringArg, true, true)) as IExecResult; } @@ -182,6 +186,7 @@ export class Smartshell { stdOutStream.removeAllListeners(); stdOutStream.unpipe(); shell.kill('SIGTERM'); + process.stdin.pause(); done.resolve(); }); let commandString = commandStringArg;