Skip to content

Commit b6b8eac

Browse files
committed
Force runLocally to be executed via host's shell option
1 parent 7627f9b commit b6b8eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Component/ProcessRunner/ProcessRunner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ public function run(Host $host, string $command, array $config = []): string
5151
};
5252

5353
$command = $this->replacePlaceholders($command, $config['vars']);
54-
5554
$command = str_replace('%secret%', $config['secret'] ?? '', $command);
5655
$command = str_replace('%sudo_pass%', $config['sudo_pass'] ?? '', $command);
5756

58-
$process = Process::fromShellCommandline($command)
57+
$process = Process::fromShellCommandline($host->getShell())
58+
->setInput($command)
5959
->setTimeout($config['timeout'])
6060
->setIdleTimeout($config['idle_timeout']);
6161

0 commit comments

Comments
 (0)