summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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;