From 5e596c4b1145e5a29246bfeeb68e37f0d8dfcce5 Mon Sep 17 00:00:00 2001 From: starknt <1431880400@qq.com> Date: Sun, 24 Nov 2024 23:11:59 +0800 Subject: [PATCH] fix: shell childExec --- packages/core/src/shell/shell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/shell/shell.js b/packages/core/src/shell/shell.js index 7e0ccd7..8e09d8d 100644 --- a/packages/core/src/shell/shell.js +++ b/packages/core/src/shell/shell.js @@ -18,7 +18,7 @@ class LinuxSystemShell extends SystemShell { cmds = [cmds] } for (const cmd of cmds) { - await _childExec(cmd, { shell: '/bin/bash' }) + await childExec(cmd, { shell: '/bin/bash' }) } } } @@ -30,7 +30,7 @@ class DarwinSystemShell extends SystemShell { } let ret for (const cmd of cmds) { - ret = await _childExec(cmd) + ret = await childExec(cmd) } return ret }