Skip to content

Commit

Permalink
fix(market): do not treat raw test as json
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 1, 2024
1 parent fdaf99e commit 03a38e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion plugins/market/client/components/confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
</el-checkbox>
</div>
<div class="right">
<el-button @click="showConfirm = false">取消</el-button>
<el-button type="danger" @click="clear">丢弃改动</el-button>
<el-button type="primary" @click="confirm">确认安装</el-button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/market/src/node/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 03a38e2

Please sign in to comment.