Skip to content

Commit 263c290

Browse files
authored
fix(rsync): Use named arguments for runLocally (#4158)
1 parent a0717f4 commit 263c290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/rsync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@
241241

242242
$host = Context::get()->getHost();
243243
if ($host instanceof Localhost) {
244-
runLocally("rsync {$rsyncFlags} {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} '$src/' '$dst/'", $config);
244+
runLocally("rsync {$rsyncFlags} {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} '$src/' '$dst/'", timeout: $config['timeout']);
245245
return;
246246
}
247247

248248
$sshArguments = $host->connectionOptionsString();
249-
runLocally("rsync {$rsyncFlags} -e 'ssh $sshArguments' {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} '$src/' '{$host->connectionString()}:$dst/'", $config);
249+
runLocally("rsync {$rsyncFlags} -e 'ssh $sshArguments' {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} '$src/' '{$host->connectionString()}:$dst/'", timeout: $config['timeout']);
250250
});

0 commit comments

Comments
 (0)