diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index 0774cca6582a9b162c885b0864dd4286ee598bf9..3e4d8b9cba7547f09a4ea0105135cb853dc3b28d 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 5aaf9c2dec8770bbd79d6eea5402b8974d4707dc..a3426ce9345c11d616622f45c31f87eed0cffd6f 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; + } } }