diff --git a/updater/src/index.js b/updater/src/index.js index f7dcd57..742dc51 100644 --- a/updater/src/index.js +++ b/updater/src/index.js @@ -133,7 +133,7 @@ async function sshExec(host, command) { '-o', 'UserKnownHostsFile=/dev/null', '-o', 'ConnectTimeout=5', `root@${host}`, - 'sh', '-c', command, + command, ], { shell: false }) let stdout = '', stderr = '' child.stdout?.on('data', d => { stdout += d }) @@ -208,7 +208,7 @@ async function runRemote(target, repoName, cmd, label) { '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', `root@${target.host}`, - 'sh', '-c', cmd, + cmd, ], { timeout: 300_000 }) entry.status = 'success' entry.output = stdout.slice(-500)