diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2014-12-18 16:16:10 +0100 |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2014-12-18 16:18:35 +0100 |
commit | bd51db63deba65db21233aad98cb23c19a407db6 (patch) | |
tree | f0bc835adcb4ae78bd2ef300da559a861073220a /bin | |
parent | aafccefb88f6ac6cebb73426115eb9fba30f306e (diff) |
Sync vendor folder if exists in source package (#1490145)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/installto.sh | 6 |
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; |