From 7e8e2f9cd57a9387a2eaf09be3f692fb18a88d4b Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Mon, 11 Sep 2023 15:52:32 +0400 Subject: [PATCH] lib: in shell imp do execs shift instead of pop. --- src/lib/shell-imp/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/shell-imp/index.ts b/src/lib/shell-imp/index.ts index 630059dd6..b3e641c6e 100644 --- a/src/lib/shell-imp/index.ts +++ b/src/lib/shell-imp/index.ts @@ -91,7 +91,8 @@ export class ShellModel implements IImpactModelInterface { try { console.log('input', input); const execs = execPath.split(' '); - const executable = execs.pop() ?? ''; + const executable = execs.shift() ?? ''; + const result = cp .spawnSync(executable, [...execs, '--calculate'], { input: input,