From 469b5a5f69d11a488f893976c171346b407b4bec Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 2 Jun 2021 09:14:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fix=20=E4=BB=BB=E5=8A=A1=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=E4=B8=8D=E9=9C=80=E8=A6=81=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/executor/src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/executor/src/index.js b/packages/core/executor/src/index.js index 5f74a62d..a700df17 100644 --- a/packages/core/executor/src/index.js +++ b/packages/core/executor/src/index.js @@ -58,14 +58,14 @@ export class Executor { logger.info('----------------------') if (!cert.isNew) { // 如果没有更新 - if (!options.args.forceDeploy && !options.args.forceRedeploy) { - // 且不需要强制运行deploy + if (options.args.forceRedeploy) { + // 强制重新部署,清空保存的状态 + await certd.certStore.setCurrentFile('context.json', '{}') + } else if (!options.args.forceDeploy) { + // 且不需要强制deploy logger.info('证书无更新,无需重新部署') logger.info('任务完成') return { cert } - } else { - // 强制重新运行,清空保存的状态 - await certd.certStore.setCurrentFile('context.json', '{}') } } // 读取上次执行进度