Permalink
Browse files

Merge pull request #192 from carnage/master

Bug fix for spaces in paths in file sync task
  • Loading branch information...
2 parents 65c854b + 7744606 commit 964b7b4721da92c0a747601203e17e0052d2e44b @mrook mrook committed Mar 21, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 classes/phing/tasks/ext/FileSyncTask.php
View
6 classes/phing/tasks/ext/FileSyncTask.php
@@ -280,16 +280,16 @@ public function getCommand()
$options .= ' --itemize-changes';
}
if ($this->backupDir !== null) {
- $options .= ' -b --backup-dir=' . $this->backupDir;
+ $options .= ' -b --backup-dir="' . $this->backupDir . '"';
}
if ($this->excludeFile !== null) {
- $options .= ' --exclude-from=' . $this->excludeFile;
+ $options .= ' --exclude-from="' . $this->excludeFile . '"';
}
$this->setOptions($options);
- $options .= ' ' . $this->sourceDir . ' ' . $this->destinationDir;
+ $options .= ' "' . $this->sourceDir . '" "' . $this->destinationDir . '"';
escapeshellcmd($options);
$options .= ' 2>&1';

0 comments on commit 964b7b4

Please sign in to comment.