From 93a8eba1375678f69ba666f5fedde602a911c58c Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 1 Dec 2016 18:50:27 +0300 Subject: Return 1 if integrity check is failed. Fixes #22806 Signed-off-by: Lukas Reschke --- core/Command/Integrity/CheckApp.php | 3 +++ core/Command/Integrity/CheckCore.php | 3 +++ 2 files changed, 6 insertions(+) (limited to 'core') 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; + } } } -- cgit v1.2.3