[downstream] Return 1 if integrity check is failed. Fixes #22806tags/v12.0.0beta1
$path = strval($input->getOption('path')); | $path = strval($input->getOption('path')); | ||||
$result = $this->checker->verifyAppSignature($appid, $path); | $result = $this->checker->verifyAppSignature($appid, $path); | ||||
$this->writeArrayInOutputFormat($input, $output, $result); | $this->writeArrayInOutputFormat($input, $output, $result); | ||||
if (count($result)>0){ | |||||
return 1; | |||||
} | |||||
} | } | ||||
} | } |
protected function execute(InputInterface $input, OutputInterface $output) { | protected function execute(InputInterface $input, OutputInterface $output) { | ||||
$result = $this->checker->verifyCoreSignature(); | $result = $this->checker->verifyCoreSignature(); | ||||
$this->writeArrayInOutputFormat($input, $output, $result); | $this->writeArrayInOutputFormat($input, $output, $result); | ||||
if (count($result)>0){ | |||||
return 1; | |||||
} | |||||
} | } | ||||
} | } |