Return 1 if integrity check is failed. Fixes #22806

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Victor Dubiniuk 2016-12-01 18:50:27 +03:00 committed by Lukas Reschke
parent b0c1460a1d
commit 93a8eba137
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}