Skip to content

Commit

Permalink
Merge pull request #26754 from owncloud/integrity-exit-code
Browse files Browse the repository at this point in the history
Integrity check: Return 1 if it is failed. Fixes #22806
  • Loading branch information
DeepDiver1975 authored Dec 5, 2016
2 parents 804ae23 + 66657bb commit 2098afb
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 2098afb

Please sign in to comment.