You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CopyBuild plugin should copy all project files.
Actual behavior
The CopyBuild plugin does not copy hidden files.
For example, in my project root I have a .mage.yml config file for deployment, but if the CopyBuild plugin is used, it does not copy this file.
Steps to reproduce
Set up the CopyBuild plugin and run it on a project with a hidden file in the project root. See that the hidden file is then not copied to the destination folder.
It seems this is simply because the copy command uses a * wildcard which does not include hidden files.
The command could be duplicated to copy hidden files on a second execution. Alternatively, the following syntax should work to copy hidden and visible files in a single notation (replacing the * with . as noted here https://superuser.com/a/367303)
'mkdir -p "%s" && cp -R %s/. "%s"'
Environment
PHP Censor dev-master
Docker
PHP 7.2
MySQL
The text was updated successfully, but these errors were encountered:
Expected behavior
The CopyBuild plugin should copy all project files.
Actual behavior
The CopyBuild plugin does not copy hidden files.
For example, in my project root I have a
.mage.yml
config file for deployment, but if the CopyBuild plugin is used, it does not copy this file.Steps to reproduce
Set up the CopyBuild plugin and run it on a project with a hidden file in the project root. See that the hidden file is then not copied to the destination folder.
It seems this is simply because the copy command uses a
*
wildcard which does not include hidden files.php-censor/src/Plugin/CopyBuild.php
Line 63 in dbd2ded
The command could be duplicated to copy hidden files on a second execution. Alternatively, the following syntax should work to copy hidden and visible files in a single notation (replacing the
*
with.
as noted here https://superuser.com/a/367303)'mkdir -p "%s" && cp -R %s/. "%s"'
Environment
The text was updated successfully, but these errors were encountered: