Skip to content

Commit

Permalink
BUGFIX: Rsync with zsh
Browse files Browse the repository at this point in the history
When running the sync command with zsh on the remote host, the glob doesn't match and the command hands without error.

See ohmyzsh/ohmyzsh#6813
  • Loading branch information
Sebobo authored Dec 15, 2024
1 parent e1a293e commit 7cfe348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/CloneCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ protected function cloneRemoteHost(
if (!$resourceProxyConfiguration) {
$this->renderHeadLine('Transfer Files');
$this->executeLocalShellCommand(
'rsync -e "ssh -p %s %s" -kLr %s@%s:%s/* %s',
'rsync -e "ssh -p %s %s" -kLr %s@%s:"%s/*" %s',
[
$port,
addslashes($sshOptions),
Expand All @@ -355,7 +355,7 @@ protected function cloneRemoteHost(
} else {
$this->renderHeadLine('Transfer Files - without Resources because a resourceProxyConfiguration is found');
$this->executeLocalShellCommand(
'rsync -e "ssh -p %s %s" --exclude "Resources/*" -kLr %s@%s:%s/* %s',
'rsync -e "ssh -p %s %s" --exclude "Resources/*" -kLr %s@%s:"%s/*" %s',
[
$port,
addslashes($sshOptions),
Expand Down Expand Up @@ -391,7 +391,7 @@ protected function cloneRemoteHost(

if ($translationsAvailable === 'true') {
$this->executeLocalShellCommand(
'rsync -e "ssh -p %s %s" -kLr %s@%s:%s/* %s',
'rsync -e "ssh -p %s %s" -kLr %s@%s:"%s/*" %s',
[
$port,
addslashes($sshOptions),
Expand Down

0 comments on commit 7cfe348

Please sign in to comment.