From 5365185d2dfa83c7d27056d8f091a606edc5764d Mon Sep 17 00:00:00 2001 From: MaurizioBrioschi Date: Mon, 31 Oct 2016 12:23:47 +0100 Subject: [PATCH] fix runCommand for not workflow magerun command --- .../Mothership/Magerun/Base/Command/Workflow/RunCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/n98-magerun/modules/mothership_addons/src/Mothership/Magerun/Base/Command/Workflow/RunCommand.php b/src/lib/n98-magerun/modules/mothership_addons/src/Mothership/Magerun/Base/Command/Workflow/RunCommand.php index 288902c..7bbff85 100644 --- a/src/lib/n98-magerun/modules/mothership_addons/src/Mothership/Magerun/Base/Command/Workflow/RunCommand.php +++ b/src/lib/n98-magerun/modules/mothership_addons/src/Mothership/Magerun/Base/Command/Workflow/RunCommand.php @@ -57,7 +57,7 @@ protected function configure() if (isset($GLOBALS['argv'][2])) { $explodedConfig = explode("=", $GLOBALS['argv'][2]); - $workflowName = isset($explodedConfig[1]) ? explode(".", $explodedConfig[1]) : ''; + $workflowName = isset($explodedConfig[1]) ? explode(".", $explodedConfig[1])[0] : ''; /** * Add the option to add this to a queue. Requires a queue configuration */ @@ -82,7 +82,7 @@ protected function configure() 'l', 2, 'The log directory. Specify a relative path to ' . getcwd(), - getcwd() . '/var/log/workflows/' . $workflowName[0] + getcwd() . '/var/log/workflows/' . $workflowName ); if (array_key_exists(1, $explodedConfig) && strpos($explodedConfig[1], 'yaml') !== false) {