We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8eec00 + 774db12 commit 75a983bCopy full SHA for 75a983b
Console/Command/Task/QueueExecuteTask.php
@@ -92,7 +92,11 @@ public function add() {
92
* @return bool Success
93
*/
94
public function run($data) {
95
- $command = escapeshellcmd($data['command']) . ' ' . implode(' ', $data['params']);
+ $command = escapeshellcmd($data['command']);
96
+ if (!empty($data['params'])) {
97
+ $command .= ' ' . implode(' ', $data['params']);
98
+ }
99
+
100
$this->out('Executing: ' . $command);
101
exec($command, $output, $status);
102
$this->out(' ');
0 commit comments