From 02a8c68f017de7dcaaf6bb53aa3f7b46d9e2d96c Mon Sep 17 00:00:00 2001 From: nfourteen Date: Wed, 21 Mar 2018 15:01:46 +0200 Subject: [PATCH] Updated catalog:images:resize CLI command to return correct exit code on failure --- app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php b/app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php index 49f82562f33db..7136c60edc18a 100644 --- a/app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php +++ b/app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php @@ -69,7 +69,6 @@ protected function execute( $productIds = $productCollection->getAllIds(); if (!count($productIds)) { $output->writeln("No product images to resize"); - // we must have an exit code higher than zero to indicate something was wrong return \Magento\Framework\Console\Cli::RETURN_SUCCESS; }