From cb892134ca0866ef7e7fc223abb15f011886e1a7 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Sat, 10 Sep 2022 23:19:18 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Get=20full=20fully-escaped=20com?= =?UTF-8?q?mand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MappableMedia.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MappableMedia.php b/src/MappableMedia.php index c2fc9c9..b3f81c2 100644 --- a/src/MappableMedia.php +++ b/src/MappableMedia.php @@ -125,7 +125,9 @@ class MappableMedia extends AbstractMediaType implements EventEmitterInterface public function getFinalCommand(): string { - return implode(' ', $this->buildCommand()); + $proc = $this->driver->getProcessBuilderFactory()->create($this->buildCommand()); + + return $proc->getCommandLine(); } public function map(callable $callback = null): Map|static