Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Dec 23, 2024
1 parent dd80b7e commit cfccf08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Ssh.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ protected function getPasswordCommand(): string
if ($this->password !== null) {
return 'sshpass -p \'' . $this->password . '\' ';
}

return '';
}

Expand Down Expand Up @@ -227,6 +228,7 @@ public function executeAsync($command): Process
public function getDownloadCommand(string $sourcePath, string $destinationPath): string
{
$passwordCommand = $this->getPasswordCommand();

return "{$passwordCommand}scp {$this->getExtraScpOptions()} {$this->getTargetForScp()}:$sourcePath $destinationPath";
}

Expand All @@ -240,6 +242,7 @@ public function download(string $sourcePath, string $destinationPath): Process
public function getUploadCommand(string $sourcePath, string $destinationPath): string
{
$passwordCommand = $this->getPasswordCommand();

return "{$passwordCommand}scp {$this->getExtraScpOptions()} $sourcePath {$this->getTargetForScp()}:$destinationPath";
}

Expand Down

0 comments on commit cfccf08

Please sign in to comment.