fix: 修复upload to host trim错误

pull/189/head
xiaojunnuo 2024-09-25 03:20:21 +08:00
parent 50e027ca80
commit 0f0ddb9c59
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
handle,
});
if (this.script.trim()) {
if (this.script?.trim()) {
this.logger.info('执行脚本命令');
const scripts = this.script.split('\n');
await sshClient.exec({