fast fix for deployment on windows
How about $rootPattern = str_replace("\\","\\\\", $root); so you don't need to call the find function again?
$rootPattern = str_replace("\\","\\\\", $root);
Can anyone confirm this fixes deployment issues on Windows?
@greezybacon Yes, I can confirm that this fix changes the behavior as expected. The .git and setup-folder will not be deployed anymore when you use the deploy script without the --setup parameter.