mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复upload to host trim错误
This commit is contained in:
@@ -235,7 +235,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
|
|||||||
handle,
|
handle,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.script.trim()) {
|
if (this.script?.trim()) {
|
||||||
this.logger.info('执行脚本命令');
|
this.logger.info('执行脚本命令');
|
||||||
const scripts = this.script.split('\n');
|
const scripts = this.script.split('\n');
|
||||||
await sshClient.exec({
|
await sshClient.exec({
|
||||||
|
|||||||
Reference in New Issue
Block a user