From bd51db63deba65db21233aad98cb23c19a407db6 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 18 Dec 2014 16:16:10 +0100 Subject: Sync vendor folder if exists in source package (#1490145) --- bin/installto.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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; -- cgit v1.2.3