From bd51db63deba65db21233aad98cb23c19a407db6 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <bruederli@kolabsys.com>
Date: Thu, 18 Dec 2014 10:18:35 -0500
Subject: [PATCH] Sync vendor folder if exists in source package (#1490145)
---
bin/installto.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/bin/installto.sh b/bin/installto.sh
index e69560c..12d317e 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -44,7 +44,11 @@
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;
--
Gitblit v1.9.1