fix: bash -lc 改为 bash -c,避免嵌套登录 shell 导致 npm 静默失败

This commit is contained in:
liufumingren 2026-07-25 02:11:31 +08:00
parent f6e9c20396
commit 80d84888a4

View File

@ -223,7 +223,7 @@ function runSsh(config, remoteScript, options = {}) {
const args = [
...buildSshBaseArgs(config),
`${config.username}@${config.host}`,
`bash -lc ${quoteForBash(remoteScript)}`,
`bash -c ${quoteForBash(remoteScript)}`,
];
return runCommand('ssh', args, {