Skip to content

Commit

Permalink
fix runCommand for not workflow magerun command
Browse files Browse the repository at this point in the history
  • Loading branch information
MaurizioBrioschi committed Oct 31, 2016
1 parent c755f19 commit 5365185
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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) {
Expand Down

0 comments on commit 5365185

Please sign in to comment.