mirror of
https://github.com/certd/certd.git
synced 2026-04-20 09:50:50 +08:00
perf: 修复windows下无法执行第二条命令的bug
This commit is contained in:
@@ -40,11 +40,11 @@ export class HostShellExecutePlugin extends AbstractTaskPlugin {
|
||||
const { script, accessId } = this;
|
||||
const connectConf = await this.accessService.getById(accessId);
|
||||
const sshClient = new SshClient(this.logger);
|
||||
const ret = await sshClient.exec({
|
||||
await sshClient.shell({
|
||||
connectConf,
|
||||
script,
|
||||
});
|
||||
this.logger.info('exec res:', ret);
|
||||
// this.logger.info('exec res:', ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user