mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #2723 from nextcloud/integrity-exit-code
[downstream] Return 1 if integrity check is failed. Fixes #22806
This commit is contained in:
commit
f54547ff1c
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue