summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-12-18 16:16:10 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2014-12-18 16:18:35 +0100
commitbd51db63deba65db21233aad98cb23c19a407db6 (patch)
treef0bc835adcb4ae78bd2ef300da559a861073220a /bin
parentaafccefb88f6ac6cebb73426115eb9fba30f306e (diff)
Sync vendor folder if exists in source package (#1490145)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/installto.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/installto.sh b/bin/installto.sh
index e69560caa..12d317e12 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -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;