From f18c309bde70d5e3aed72d1beb0464ec5bd06597 Mon Sep 17 00:00:00 2001 From: yadimon <dmitry.gorelenkov@gmx.net> Date: Fri, 8 May 2015 16:21:00 +0200 Subject: [PATCH] fast fix for deployment on windows --- setup/cli/modules/deploy.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/cli/modules/deploy.php b/setup/cli/modules/deploy.php index f402e99e2..7eb35bc92 100644 --- a/setup/cli/modules/deploy.php +++ b/setup/cli/modules/deploy.php @@ -151,11 +151,12 @@ class Deployment extends Unpacker { # Locate the upload folder $root = $this->find_root_folder(); + $rootPattern = str_replace("\\","\\\\", $this->find_root_folder()); //need for windows case - $exclusions = array("$root/include", "$root/.git*", + $exclusions = array("$rootPattern/include", "$rootPattern/.git*", "*.sw[a-z]","*.md", "*.txt"); if (!$options['setup']) - $exclusions[] = "$root/setup"; + $exclusions[] = "$rootPattern/setup"; # Unpack everything but the include/ folder $this->unpackage("$root/{,.}*", $this->destination, -1, -- GitLab