From 9fdb5605281427e3067a69f97358a9a9939a0787 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 25 Sep 2024 03:22:14 +0800 Subject: [PATCH] chore: 1 --- .../src/plugins/plugin-host/plugin/upload-to-host/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/certd-server/src/plugins/plugin-host/plugin/upload-to-host/index.ts b/packages/ui/certd-server/src/plugins/plugin-host/plugin/upload-to-host/index.ts index 71428bbd6..ae30eee90 100644 --- a/packages/ui/certd-server/src/plugins/plugin-host/plugin/upload-to-host/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-host/plugin/upload-to-host/index.ts @@ -235,7 +235,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin { handle, }); - if (this.script?.trim()) { + if (this.script && this.script?.trim()) { this.logger.info('执行脚本命令'); const scripts = this.script.split('\n'); await sshClient.exec({