Skip to content
Snippets Groups Projects
Commit f18c309b authored by yadimon's avatar yadimon
Browse files

fast fix for deployment on windows

parent df7c71c8
Branches
Tags
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment