fix(core): update
This commit is contained in:
parent
16ba3803a4
commit
62195b63d6
@ -119,6 +119,10 @@ export class Smartshell {
|
|||||||
* executes a command async and strict, meaning it rejects the promise if something happens
|
* executes a command async and strict, meaning it rejects the promise if something happens
|
||||||
*/
|
*/
|
||||||
public async execStrict(commandStringArg: string): Promise<IExecResult> {
|
public async execStrict(commandStringArg: string): Promise<IExecResult> {
|
||||||
|
return (await this._exec(commandStringArg, false, true)) as IExecResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async execStrictSilent (commandStringArg: string): Promise<IExecResult> {
|
||||||
return (await this._exec(commandStringArg, true, true)) as IExecResult;
|
return (await this._exec(commandStringArg, true, true)) as IExecResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,6 +186,7 @@ export class Smartshell {
|
|||||||
stdOutStream.removeAllListeners();
|
stdOutStream.removeAllListeners();
|
||||||
stdOutStream.unpipe();
|
stdOutStream.unpipe();
|
||||||
shell.kill('SIGTERM');
|
shell.kill('SIGTERM');
|
||||||
|
process.stdin.pause();
|
||||||
done.resolve();
|
done.resolve();
|
||||||
});
|
});
|
||||||
let commandString = commandStringArg;
|
let commandString = commandStringArg;
|
||||||
|
Loading…
Reference in New Issue
Block a user