diff options
-rw-r--r-- | core/Command/Integrity/CheckApp.php | 3 | ||||
-rw-r--r-- | core/Command/Integrity/CheckCore.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index 0774cca6582..3e4d8b9cba7 100644 --- a/core/Command/Integrity/CheckApp.php +++ b/core/Command/Integrity/CheckApp.php @@ -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; + } } } diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php index 5aaf9c2dec8..a3426ce9345 100644 --- a/core/Command/Integrity/CheckCore.php +++ b/core/Command/Integrity/CheckCore.php @@ -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; + } } } |