From 03a38e2abd1a407a27f32c18c00c35ba270024a9 Mon Sep 17 00:00:00 2001 From: Shigma Date: Fri, 2 Feb 2024 04:35:27 +0800 Subject: [PATCH] fix(market): do not treat raw test as json --- plugins/market/client/components/confirm.vue | 1 - plugins/market/src/node/installer.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/market/client/components/confirm.vue b/plugins/market/client/components/confirm.vue index 1536f7fb..ded1b3e5 100644 --- a/plugins/market/client/components/confirm.vue +++ b/plugins/market/client/components/confirm.vue @@ -32,7 +32,6 @@
- 取消 丢弃改动 确认安装
diff --git a/plugins/market/src/node/installer.ts b/plugins/market/src/node/installer.ts index b2181277..ca0b0f6c 100644 --- a/plugins/market/src/node/installer.ts +++ b/plugins/market/src/node/installer.ts @@ -211,7 +211,7 @@ class Installer extends Service { const lines = data.split('\n') stdout = lines.pop()! for (const line of lines) { - if (!useJson) { + if (!useJson || line[0] !== '{') { logger.info(line) continue }