From 264bc483b3e422092a4a1e0e2530a602badd7eea Mon Sep 17 00:00:00 2001 From: Andrii Bilyi Date: Tue, 24 Sep 2024 16:39:35 +0300 Subject: [PATCH] Update Console.php Allow multiple argument divided with space in command arguments --- src/schedules/Console.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }