Skip to content

Commit

Permalink
Return 1 if integrity check is failed. Fixes #22806
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo authored and Vincent Petry committed Dec 3, 2016
1 parent 69aa5c9 commit 66657bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/Command/Integrity/CheckApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$path = strval($input->getOption('path'));
$result = $this->checker->verifyAppSignature($appid, $path);
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
}

}
3 changes: 3 additions & 0 deletions core/Command/Integrity/CheckCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ protected function configure() {
protected function execute(InputInterface $input, OutputInterface $output) {
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){
return 1;
}
}
}

0 comments on commit 66657bb

Please sign in to comment.