Skip to content

Commit

Permalink
lib: in shell imp do execs shift instead of pop.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Sep 11, 2023
1 parent 091106b commit 7e8e2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/shell-imp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7e8e2f9

Please sign in to comment.