diff --git a/src/schedules/Console.php b/src/schedules/Console.php index 41505d7..23f725d 100644 --- a/src/schedules/Console.php +++ b/src/schedules/Console.php @@ -80,9 +80,11 @@ public function buildCommand(): array PHP_BINARY, self::CRAFT_CLI_SCRIPT, $this->command, - $this->arguments, ]; + $arguments = explode(' ', $this->arguments); + $command = array_merge($command, $arguments); + if ($this->user) { $command = array_merge(['sudo -u', $this->user], $command); }