Skip to content
Snippets Groups Projects
Unverified Commit 93a8eba1 authored by Victor Dubiniuk's avatar Victor Dubiniuk Committed by Lukas Reschke
Browse files

Return 1 if integrity check is failed. Fixes #22806

parent b0c1460a
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,9 @@ class CheckApp extends Base { ...@@ -66,6 +66,9 @@ class CheckApp extends Base {
$path = strval($input->getOption('path')); $path = strval($input->getOption('path'));
$result = $this->checker->verifyAppSignature($appid, $path); $result = $this->checker->verifyAppSignature($appid, $path);
$this->writeArrayInOutputFormat($input, $output, $result); $this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
} }
} }
...@@ -60,5 +60,8 @@ class CheckCore extends Base { ...@@ -60,5 +60,8 @@ class CheckCore extends Base {
protected function execute(InputInterface $input, OutputInterface $output) { protected function execute(InputInterface $input, OutputInterface $output) {
$result = $this->checker->verifyCoreSignature(); $result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result); $this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment