mirror of
https://github.com/deployphp/deployer.git
synced 2025-03-14 18:29:41 +01:00
parent
266554d3c7
commit
0cf5d18591
@ -71,7 +71,12 @@ class Rsync
|
||||
if (!is_array($source)) {
|
||||
$source = [$source];
|
||||
}
|
||||
$command = array_merge(['rsync', $flags], $options, $source, [$destination]);
|
||||
$command = array_filter(
|
||||
array_merge(['rsync', $flags], $options, $source, [$destination]),
|
||||
function (string $value) {
|
||||
return $value !== '';
|
||||
},
|
||||
);
|
||||
|
||||
$commandString = $command[0];
|
||||
for ($i = 1; $i < count($command); $i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user