Skip to content

Commit 75a983b

Browse files
author
Mark S.
committed
Merge pull request #18 from davidyell/patch-2
Resolves #17
2 parents f8eec00 + 774db12 commit 75a983b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Console/Command/Task/QueueExecuteTask.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ public function add() {
9292
* @return bool Success
9393
*/
9494
public function run($data) {
95-
$command = escapeshellcmd($data['command']) . ' ' . implode(' ', $data['params']);
95+
$command = escapeshellcmd($data['command']);
96+
if (!empty($data['params'])) {
97+
$command .= ' ' . implode(' ', $data['params']);
98+
}
99+
96100
$this->out('Executing: ' . $command);
97101
exec($command, $output, $status);
98102
$this->out(' ');

0 commit comments

Comments
 (0)