We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0c8b6 commit 278dda9Copy full SHA for 278dda9
src/Command/DeployRsyncCommand.php
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
85
$command[] = $this->getDirPath($targetPats['path']);
86
} elseif (preg_match(self::TARGET_SSH_REGEX, $environment['target'], $targetPats)) {
87
$command[] = '-e';
88
- $command[] = \sprintf('ssh -p%s', (isset($targetPats['port']) && '' !== $targetPats['port']) ? $targetPats['port'] : 22);
+ $command[] = \sprintf('ssh -p%s', ('' !== $targetPats['port']) ? $targetPats['port'] : 22);
89
$command[] = $this->getDirPath($this->projetDir);
90
$command[] = \sprintf('%s@%s:%s', $targetPats['username'], $targetPats['hostname'], $this->getDirPath($targetPats['path']));
91
} else {
0 commit comments