Skip to content

Commit df3a4d8

Browse files
authored
Better handling of custom option in builder (#415)
1 parent f8a60d1 commit df3a4d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.castor/docker.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function builder(#[AsArgsAfterOptionEnd] array $params = []): int
167167
$c = $c->toInteractive();
168168
} else {
169169
$c = $c->withTty(false)->withPty(false)->withAllowFailure();
170+
$params = array_map(escapeshellarg(...), $params);
170171
}
171172

172173
return (int) docker_compose_run(implode(' ', $params), c: $c)->getExitCode();

0 commit comments

Comments
 (0)