diff --git a/src/DeploymentProvider/Rsync.php b/src/DeploymentProvider/Rsync.php index f13819d..525302a 100644 --- a/src/DeploymentProvider/Rsync.php +++ b/src/DeploymentProvider/Rsync.php @@ -129,12 +129,13 @@ public function up(Closure $output = null, $dryrun = false, DeploymentResult $de // silent per-server output when collating multiple streams $silent = count($this->getTargetPaths()) > 1; foreach ($this->getTargetPaths() as $server => $targetPath) { + $command = $this->buildCommand( + $this->beam->getLocalPath(), + $targetPath, + $dryrun + ); $result = $this->deploy( - $this->buildCommand( - $this->beam->getLocalPath(), - $targetPath, - $dryrun - ), + $command, $output, $silent ); @@ -396,7 +397,7 @@ protected function parseLine($line) $change = []; $matches = []; if (1 !== preg_match( - '/ + '/ (?: (^\*\w+) # capture anything with a "*" then words e.g. "*deleting" | # or @@ -418,9 +419,9 @@ protected function parseLine($line) [ ] # a space (.*) # filename /x', - $line, - $matches - )) { + $line, + $matches + )) { return false; } if ($matches[1] == '*deleting') {