From 801b1e6bd8b903108559ea92b2d86ea2776e1e22 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 15:20:52 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20SSH=20command=20quoting=20=E2=80=94=20pas?= =?UTF-8?q?s=20cmd=20directly,=20drop=20sh=20-c=20wrapper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updater/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)