浏览代码

Merge pull request #2723 from nextcloud/integrity-exit-code

[downstream] Return 1 if integrity check is failed. Fixes #22806
tags/v12.0.0beta1
Roeland Jago Douma 7 年前
父节点
当前提交
f54547ff1c
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3
    0
      core/Command/Integrity/CheckApp.php
  2. 3
    0
      core/Command/Integrity/CheckCore.php

+ 3
- 0
core/Command/Integrity/CheckApp.php 查看文件

@@ -66,6 +66,9 @@ class CheckApp extends Base {
$path = strval($input->getOption('path'));
$result = $this->checker->verifyAppSignature($appid, $path);
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
}

}

+ 3
- 0
core/Command/Integrity/CheckCore.php 查看文件

@@ -60,5 +60,8 @@ class CheckCore extends Base {
protected function execute(InputInterface $input, OutputInterface $output) {
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
}
}

正在加载...
取消
保存