From 66657bbf48096b5a162265270b3815ee5398b282 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 1 Dec 2016 18:50:27 +0300 Subject: [PATCH] Return 1 if integrity check is failed. Fixes #22806 --- core/Command/Integrity/CheckApp.php | 3 +++ core/Command/Integrity/CheckCore.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index 7123452c2757..5b4fa8185747 100644 --- a/core/Command/Integrity/CheckApp.php +++ b/core/Command/Integrity/CheckApp.php @@ -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; + } } } diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php index 7316bcdff2f8..03ff458adf50 100644 --- a/core/Command/Integrity/CheckCore.php +++ b/core/Command/Integrity/CheckCore.php @@ -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; + } } }