Skip to content

Commit 98fa6dd

Browse files
committed
Fix ssh connection options for ssh command
1 parent 08a2346 commit 98fa6dd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Command/SshCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9595

9696
Context::push(new Context($host));
9797
$host->setSshMultiplexing(false);
98-
$connOptions = '';
99-
foreach ($host->connectionOptions() as $option) {
100-
$connOptions .= quote($option);
101-
}
98+
$connOptions = implode(' ', array_map(function ($option) {
99+
return quote($option);
100+
}, $host->connectionOptions()));
102101
$deployPath = $host->get('deploy_path', '~');
103102

104103
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {

0 commit comments

Comments
 (0)