mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-06 16:16:48 +01:00
Sync vendor folder if exists in source package (#1490145)
This commit is contained in:
@@ -44,7 +44,11 @@ $input = trim(fgets(STDIN));
|
||||
if (strtolower($input) == 'y') {
|
||||
$err = false;
|
||||
echo "Copying files to target location...";
|
||||
foreach (array('program','installer','bin','SQL','plugins','skins') as $dir) {
|
||||
$dirs = array('program','installer','bin','SQL','plugins','skins');
|
||||
if (is_dir(INSTALL_PATH . 'vendor') && !is_file(INSTALL_PATH . 'composer.json')) {
|
||||
$dirs[] = 'vendor';
|
||||
}
|
||||
foreach ($dirs as $dir) {
|
||||
if (!system("rsync -avC " . INSTALL_PATH . "$dir/* $target_dir/$dir/")) {
|
||||
$err = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user