system() returns the last line of output (or false on failure)
rsync will have no output if the file being copied hasn't changed
Signed-off-by: Nathan Rennie-Waldock <nathan.renniewaldock@gmail.com>
pull/6072/head
Nathan Rennie-Waldock7 years agocommitted byAleksander Machniak
rcube::raise_error("Failed to execute command: $command", false, true);
}
}
foreach (array('index.php','.htaccess','config/defaults.inc.php','composer.json-dist','jsdeps.json','CHANGELOG','README.md','UPGRADING','LICENSE','INSTALL') as $file){
$command="rsync -a --out-format=%n " . INSTALL_PATH . "$file$target_dir/$file";